summaryrefslogtreecommitdiff
path: root/COPYING3.LIB
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2017-01-06 01:04:41 -0200
committerAlexandre Oliva <aoliva@redhat.com>2017-01-06 01:30:59 -0200
commite6b1bc99739015684f9114d89623329eec4eaf18 (patch)
treeceb4769e083fbfdba3bc5b8f78398ec3e77d61eb /COPYING3.LIB
parent14d67e5d74bcc455ab7ba5465b70183a84cbb647 (diff)
downloadgcc-e6b1bc99739015684f9114d89623329eec4eaf18.tar.gz
[bootstrap-O1] change value type to avoid sprintf buffer size warning
In stage2 of bootstrap-O1, the code that warns if sprintf might overflow its output buffer cannot tell that an unsigned value narrowed to 16 bits will fit in 4 bytes with %4x. Converting the value to 'unsigned short' makes it obvious that it fits, at least on machines with 16-bit shorts. for gcc/c-family/ChangeLog * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit value to unsigned short to fit in 4 hex digits without warnings.
Diffstat (limited to 'COPYING3.LIB')
0 files changed, 0 insertions, 0 deletions