aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/profile.c
diff options
context:
space:
mode:
authorPaul Eggert2016-11-25 21:24:28 -0800
committerPaul Eggert2016-11-25 21:25:55 -0800
commitd2d4b0746500265eddfa3c618bd6670aaa5eee90 (patch)
tree874863a0e41ab5863d33ad715dfbba5558520f4a /lib-src/profile.c
parentacb5589fcd981650225e9fb2e949e3681db551c1 (diff)
downloademacs-d2d4b0746500265eddfa3c618bd6670aaa5eee90.tar.gz
emacs-d2d4b0746500265eddfa3c618bd6670aaa5eee90.zip
Port build to gcc -fcheck-pointer-bounds
This does not let Emacs run, just build. * lib-src/etags.c (main): * lib-src/profile.c (main): Use return, not exit. * src/bytecode.c (BYTE_CODE_THREADED) [__CHKP__]: Do not define, as -fcheck-pointer-bounds is incompatible with taking addresses of labels. * src/menu.c (Fx_popup_dialog): Use eassume, not eassert, to pacify gcc -fcheck-pointer-bounds -Wnull-dereference.
Diffstat (limited to 'lib-src/profile.c')
-rw-r--r--lib-src/profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/profile.c b/lib-src/profile.c
index edd36cafd37..cfee5b8608f 100644
--- a/lib-src/profile.c
+++ b/lib-src/profile.c
@@ -85,13 +85,13 @@ main (void)
85 puts (get_time ()); 85 puts (get_time ());
86 break; 86 break;
87 case 'q': 87 case 'q':
88 exit (EXIT_SUCCESS); 88 return EXIT_SUCCESS;
89 } 89 }
90 /* Anything remaining on the line is ignored. */ 90 /* Anything remaining on the line is ignored. */
91 while (c != '\n' && c != EOF) 91 while (c != '\n' && c != EOF)
92 c = getchar (); 92 c = getchar ();
93 } 93 }
94 exit (EXIT_FAILURE); 94 return EXIT_FAILURE;
95} 95}
96 96
97 97