aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/hexl.c
diff options
context:
space:
mode:
authorPaul Eggert2015-04-24 22:37:11 -0700
committerPaul Eggert2015-04-24 22:41:56 -0700
commit52ba851db188de47b303120df00c77e3aad7e542 (patch)
treefd7e6c3e4519b309b1b6c4d26c5d6465b0498fbf /lib-src/hexl.c
parent5933886920fefe800747baf7863685b9dc961d83 (diff)
downloademacs-52ba851db188de47b303120df00c77e3aad7e542.tar.gz
emacs-52ba851db188de47b303120df00c77e3aad7e542.zip
Port --enable-gcc-warnings to GCC 5.1 x86-64
* lib-src/ebrowse.c (dump_sym): * lib-src/hexl.c (main): * src/ccl.c (ccl_driver): * src/character.c (string_escape_byte8): * src/dbusbind.c (xd_retrieve_arg, xd_add_watch): * src/gnutls.c (Fgnutls_boot): * src/gtkutil.c (xg_check_special_colors): * src/image.c (x_build_heuristic_mask): * src/print.c (safe_debug_print, print_object): * src/term.c (produce_glyphless_glyph): * src/xdisp.c (get_next_display_element) (produce_glyphless_glyph): * src/xterm.c (x_draw_glyphless_glyph_string_foreground): Don't use a signed format to print an unsigned integer, or vice versa. GCC 5.1's new -Wformat-signedness option warns about this. * src/image.c (png_load_body, jpeg_load_body): Silence a bogus setjump diagnostic from GCC 5.1 (GCC bug 54561).
Diffstat (limited to 'lib-src/hexl.c')
-rw-r--r--lib-src/hexl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/hexl.c b/lib-src/hexl.c
index 490f72731b4..ac493c2740c 100644
--- a/lib-src/hexl.c
+++ b/lib-src/hexl.c
@@ -216,7 +216,7 @@ main (int argc, char **argv)
216 else 216 else
217 { 217 {
218 if (!i) 218 if (!i)
219 printf ("%08lx: ", address); 219 printf ("%08lx: ", address + 0ul);
220 220
221 if (iso_flag) 221 if (iso_flag)
222 string[i+1] = 222 string[i+1] =
@@ -224,7 +224,7 @@ main (int argc, char **argv)
224 else 224 else
225 string[i+1] = (c < 0x20 || c >= 0x7F) ? '.' : c; 225 string[i+1] = (c < 0x20 || c >= 0x7F) ? '.' : c;
226 226
227 printf ("%02x", c); 227 printf ("%02x", c + 0u);
228 } 228 }
229 229
230 if ((i&group_by) == group_by) 230 if ((i&group_by) == group_by)