summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-01-10 12:43:35 +0000
committerBruno Haible <bruno@clisp.org>2003-01-10 12:43:35 +0000
commit3a01fe39b24b9fbcf469dde0c6f54f398451ee36 (patch)
tree64c13573d32d4f215f664af1b1beab2102abf786
parent7dbc285db494680ace45db68b2e6ab50d88e7bf0 (diff)
downloadgperf-3a01fe39b24b9fbcf469dde0c6f54f398451ee36.tar.gz
Use (unsigned char) cast in all cases.
-rw-r--r--ChangeLog3
-rw-r--r--src/output.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d29acee..288294d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2002-11-03 Bruno Haible <bruno@clisp.org>
+ * src/output.cc (Output::output): Set char_to_index to a cast in all
+ cases. Avoids gcc warnings on the generated code.
+
* src/output.cc (Output_Enum): Prepend an underscore to field names.
(Output_Expr1): Likewise.
(Output::output_hash_function): Simplify the special case for "-k 1,$".
diff --git a/src/output.cc b/src/output.cc
index bee03bb..3001689 100644
--- a/src/output.cc
+++ b/src/output.cc
@@ -1464,7 +1464,7 @@ Output::output ()
_struct_tag = (const_always[0] ? "const char *" : "char *");
}
- char_to_index = (option[SEVENBIT] ? "" : "(unsigned char)");
+ char_to_index = "(unsigned char)";
printf ("/* ");
if (option[KRC])