diff options
author | Ken Brown <kbrown@cornell.edu> | 2018-08-16 09:05:56 -0400 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2018-08-16 09:06:46 -0400 |
commit | 5f39f203eeadc7fad8aecd5269a487abad2fad6f (patch) | |
tree | 206908fd9bcde9e086582db869bb66030f996569 /src/unexcw.c | |
parent | decd9839819277c34c13f1771ef73626208cbdd9 (diff) | |
download | emacs-5f39f203eeadc7fad8aecd5269a487abad2fad6f.tar.gz emacs-5f39f203eeadc7fad8aecd5269a487abad2fad6f.tar.bz2 emacs-5f39f203eeadc7fad8aecd5269a487abad2fad6f.zip |
Pacify GCC with -Wunused-but-set-variable
* src/unexcw.c (read_exe_header):
(fixup_executable):
(unexec): Specify the "unused" attribute for variables that
are used only in assertions.
Diffstat (limited to 'src/unexcw.c')
-rw-r--r-- | src/unexcw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unexcw.c b/src/unexcw.c index 762b996e4b6..dea9f6a7462 100644 --- a/src/unexcw.c +++ b/src/unexcw.c @@ -48,7 +48,7 @@ static exe_header_t * read_exe_header (int fd, exe_header_t * exe_header_buffer) { int i; - int ret; + int ret ATTRIBUTE_UNUSED; assert (fd >= 0); assert (exe_header_buffer != 0); @@ -111,7 +111,7 @@ fixup_executable (int fd) exe_header_t exe_header_buffer; exe_header_t *exe_header; int i; - int ret; + int ret ATTRIBUTE_UNUSED; int found_data = 0; int found_bss = 0; @@ -269,7 +269,7 @@ unexec (const char *outfile, const char *infile) int fd_in; int fd_out; int ret; - int ret2; + int ret2 ATTRIBUTE_UNUSED; infile = add_exe_suffix_if_necessary (infile, infile_buffer); outfile = add_exe_suffix_if_necessary (outfile, outfile_buffer); |