diff options
author | Bruno Haible <bruno@clisp.org> | 2003-01-10 12:43:35 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2003-01-10 12:43:35 +0000 |
commit | 3a01fe39b24b9fbcf469dde0c6f54f398451ee36 (patch) | |
tree | 64c13573d32d4f215f664af1b1beab2102abf786 | |
parent | 7dbc285db494680ace45db68b2e6ab50d88e7bf0 (diff) | |
download | gperf-3a01fe39b24b9fbcf469dde0c6f54f398451ee36.tar.gz |
Use (unsigned char) cast in all cases.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/output.cc | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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]) |