summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>1999-05-13 10:13:15 +0000
committeraaron <aaron@openbsd.org>1999-05-13 10:13:15 +0000
commit95d7f7ede0a8ab65d8c2208c89586fb146ba5835 (patch)
tree988d53417ed0095490a9b0607193534b4b8c61e9
parentlibary -> library, other misc corrections (diff)
downloadwireguard-openbsd-95d7f7ede0a8ab65d8c2208c89586fb146ba5835.tar.xz
wireguard-openbsd-95d7f7ede0a8ab65d8c2208c89586fb146ba5835.zip
correct a warning: don't test for format_char == 'x' twice in the same if()
statement, rather, check for 'x' *and* 'X' ('X' being a synonym for 'x')
-rw-r--r--gnu/usr.bin/gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/c-common.c b/gnu/usr.bin/gcc/c-common.c
index aa5e4cea500..bdae4d37632 100644
--- a/gnu/usr.bin/gcc/c-common.c
+++ b/gnu/usr.bin/gcc/c-common.c
@@ -1511,7 +1511,7 @@ check_format_info (info, params)
if (precise && index (flag_chars, '0') != 0
&& (format_char == 'd' || format_char == 'i'
|| format_char == 'o' || format_char == 'u'
- || format_char == 'x' || format_char == 'x'))
+ || format_char == 'x' || format_char == 'X'))
{
sprintf (message,
"`0' flag ignored with precision specifier and `%c' format",