summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-11-25 21:24:28 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-11-25 21:25:55 -0800
commitd2d4b0746500265eddfa3c618bd6670aaa5eee90 (patch)
tree874863a0e41ab5863d33ad715dfbba5558520f4a /lib-src
parentacb5589fcd981650225e9fb2e949e3681db551c1 (diff)
downloademacs-d2d4b0746500265eddfa3c618bd6670aaa5eee90.tar.gz
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')
-rw-r--r--lib-src/etags.c4
-rw-r--r--lib-src/profile.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index e5d76d4c591..6a722e0641c 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1330,7 +1330,7 @@ main (int argc, char **argv)
pfatal (tagfile);
}
- exit (EXIT_SUCCESS);
+ return EXIT_SUCCESS;
}
/* From here on, we are in (CTAGS && !cxref_style) */
@@ -1383,7 +1383,7 @@ main (int argc, char **argv)
z = stpcpy (z, tagfile);
*z++ = ' ';
strcpy (z, tagfile);
- exit (system (cmd));
+ return system (cmd);
}
return EXIT_SUCCESS;
}
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)
puts (get_time ());
break;
case 'q':
- exit (EXIT_SUCCESS);
+ return EXIT_SUCCESS;
}
/* Anything remaining on the line is ignored. */
while (c != '\n' && c != EOF)
c = getchar ();
}
- exit (EXIT_FAILURE);
+ return EXIT_FAILURE;
}