https://sourceware.org/bugzilla/show_bug.cgi?id=21934
--- Comment #13 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Brett Neumeier from comment #12) > Created attachment 10346 [details] > improved fix suggested by Martin Sebor > > I filed a GCC bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81840) and > mentioned that here, but currently the GCC bugzilla denies that bug exists. > Weird. Bugzilla server crashed yesterday and all yesterday's changes are lost. > Anyway, in a comment on that bug, Martin Sebor suggested adding a "hh" > prefix to the snprintf conversion specifier, to explicitly inform GCC that > the integer conversion corresponds to a char argument. That does indeed > avoid the false-positive warning message, and seems compliant with the > defined behavior of printf, so maybe it makes sense to apply that change > here in binutils? There is cast to (unsigned char). Why does GCC see that? Why does it only happen on arm? Also does 'hh" work with all compilers on all supported hosts? -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils