diff options
author | 1999-05-13 10:13:15 +0000 | |
---|---|---|
committer | 1999-05-13 10:13:15 +0000 | |
commit | 95d7f7ede0a8ab65d8c2208c89586fb146ba5835 (patch) | |
tree | 988d53417ed0095490a9b0607193534b4b8c61e9 | |
parent | libary -> library, other misc corrections (diff) | |
download | wireguard-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.c | 2 |
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", |