mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Avoid outputting initializers of the form {"key",} which cause compiler
warnings.
This commit is contained in:
@@ -1044,7 +1044,11 @@ output_keyword_entry (List_Node *temp, const char *indent)
|
||||
printf ("{");
|
||||
output_string (temp->key);
|
||||
if (option[TYPE])
|
||||
printf (",%s}", temp->rest);
|
||||
{
|
||||
if (strlen (temp->rest) > 0)
|
||||
printf (",%s", temp->rest);
|
||||
printf ("}");
|
||||
}
|
||||
if (option[DEBUG])
|
||||
printf (" /* hash value = %d, index = %d */",
|
||||
temp->hash_value, temp->index);
|
||||
|
||||
Reference in New Issue
Block a user