summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-05-13 10:13:16 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-05-13 10:13:16 +0000
commitbe8c26f15402075e7bb0b9ce59c1b79acc5c8189 (patch)
treeab4f1fb66b367eedcbf28b9f1c57acb839e56ed5
parent95dff43e396eb124fab04e0b5227ce3caf55be10 (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')
-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",