diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-13 10:13:16 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-13 10:13:16 +0000 |
commit | be8c26f15402075e7bb0b9ce59c1b79acc5c8189 (patch) | |
tree | ab4f1fb66b367eedcbf28b9f1c57acb839e56ed5 /gnu | |
parent | 95dff43e396eb124fab04e0b5227ce3caf55be10 (diff) |
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')
Diffstat (limited to 'gnu')
-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", |