diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 13 | ||||
| -rw-r--r-- | src/sysdep.c | 7 |
2 files changed, 17 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index aee41f57ac2..a65fc5730df 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2011-02-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | allow C code to suppress warnings about ignored return values | ||
| 4 | |||
| 5 | We need to go through the code and for each such warning, either | ||
| 6 | fix the code to pay attention to the returned value, or tell GCC | ||
| 7 | that we really do want to ignore the returned value. Here is one | ||
| 8 | example of how to do the latter. | ||
| 9 | * sysdep.c: Include <ignore-value.h>. | ||
| 10 | (sys_subshell): Suppress an undesirable warning about not checking | ||
| 11 | the returned value of 'write', as there's nothing useful one can | ||
| 12 | do with that returned value. | ||
| 13 | |||
| 1 | 2011-02-03 Jan Djärv <jan.h.d@swipnet.se> | 14 | 2011-02-03 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 15 | ||
| 3 | * xterm.c (x_connection_closed): Remove all calls that calls | 16 | * xterm.c (x_connection_closed): Remove all calls that calls |
diff --git a/src/sysdep.c b/src/sysdep.c index 5f82d2d534c..53b7f39171e 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -31,6 +31,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | #endif /* HAVE_LIMITS_H */ | 31 | #endif /* HAVE_LIMITS_H */ |
| 32 | #include <unistd.h> | 32 | #include <unistd.h> |
| 33 | 33 | ||
| 34 | #include <ignore-value.h> | ||
| 35 | |||
| 34 | #include "lisp.h" | 36 | #include "lisp.h" |
| 35 | #include "sysselect.h" | 37 | #include "sysselect.h" |
| 36 | #include "blockinput.h" | 38 | #include "blockinput.h" |
| @@ -263,7 +265,7 @@ void | |||
| 263 | init_baud_rate (int fd) | 265 | init_baud_rate (int fd) |
| 264 | { | 266 | { |
| 265 | int emacs_ospeed; | 267 | int emacs_ospeed; |
| 266 | 268 | ||
| 267 | if (noninteractive) | 269 | if (noninteractive) |
| 268 | emacs_ospeed = 0; | 270 | emacs_ospeed = 0; |
| 269 | else | 271 | else |
| @@ -578,7 +580,7 @@ sys_subshell (void) | |||
| 578 | write (1, "Can't execute subshell", 22); | 580 | write (1, "Can't execute subshell", 22); |
| 579 | #else /* not WINDOWSNT */ | 581 | #else /* not WINDOWSNT */ |
| 580 | execlp (sh, sh, (char *) 0); | 582 | execlp (sh, sh, (char *) 0); |
| 581 | write (1, "Can't execute subshell", 22); | 583 | ignore_value (write (1, "Can't execute subshell", 22)); |
| 582 | _exit (1); | 584 | _exit (1); |
| 583 | #endif /* not WINDOWSNT */ | 585 | #endif /* not WINDOWSNT */ |
| 584 | #endif /* not MSDOS */ | 586 | #endif /* not MSDOS */ |
| @@ -3058,4 +3060,3 @@ system_process_attributes (Lisp_Object pid) | |||
| 3058 | } | 3060 | } |
| 3059 | 3061 | ||
| 3060 | #endif /* !defined (WINDOWSNT) */ | 3062 | #endif /* !defined (WINDOWSNT) */ |
| 3061 | |||