aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-14 16:30:06 -0700
committerPaul Eggert2011-03-14 16:30:06 -0700
commitedced198e35ccd2ab81797988705597da3fc3e19 (patch)
treef411c0c53b5c77799e555bcaa41e091a5a323c60 /src
parentfbd02d7b061d3adc47ccce6ff568ef4bd3aecf17 (diff)
downloademacs-edced198e35ccd2ab81797988705597da3fc3e19.tar.gz
emacs-edced198e35ccd2ab81797988705597da3fc3e19.zip
* sysdep.c (sys_subshell): Mark local as volatile if checking for lint,
to suppress a gcc -Wclobbered warning that does not seem to be right.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/sysdep.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 266ff2f58a6..efc238cc078 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing. 3 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
4 Fix pointer signedness issue. 4 Fix pointer signedness issue.
5 (sys_subshell): Mark local as volatile if checking for lint,
6 to suppress a gcc -Wclobbered warning that does not seem to be right.
5 7
6 * process.c (serial_open, serial_configure): Move decls from here ... 8 * process.c (serial_open, serial_configure): Move decls from here ...
7 * systty.h: ... to here, so that they can be checked. 9 * systty.h: ... to here, so that they can be checked.
diff --git a/src/sysdep.c b/src/sysdep.c
index e19f9ca829e..1c49b2a3387 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -488,7 +488,7 @@ sys_subshell (void)
488 int pid; 488 int pid;
489 struct save_signal saved_handlers[5]; 489 struct save_signal saved_handlers[5];
490 Lisp_Object dir; 490 Lisp_Object dir;
491 unsigned char *str = 0; 491 unsigned char * IF_LINT (volatile) str = 0;
492 int len; 492 int len;
493 493
494 saved_handlers[0].code = SIGINT; 494 saved_handlers[0].code = SIGINT;