From 3a01fe39b24b9fbcf469dde0c6f54f398451ee36 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 10 Jan 2003 12:43:35 +0000 Subject: [PATCH] Use (unsigned char) cast in all cases. --- ChangeLog | 3 +++ src/output.cc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d29acee..288294d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-11-03 Bruno Haible + * 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])