1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Avoid "-Wzero-as-null-pointer-constant" warnings on the generated code.

Reported in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00123.html>.

* src/output.cc (Output::output_lookup_function_body): To denote a null
pointer, emit a cast expression instead of plain "0".
* tests/c-parse.exp, tests/charsets.exp, tests/chill.exp,
tests/cplusplus.exp, tests/gpc.exp, tests/incomplete.exp,
tests/java.exp, tests/languages.exp, tests/modula2.exp, tests/objc.exp,
tests/permut2.exp, tests/permut3.exp, tests/permutc2.exp,
tests/test-4.exp: Update.
This commit is contained in:
Bruno Haible
2024-11-16 08:22:30 +01:00
parent 8ffda68bfc
commit 2dd5061f4d
16 changed files with 48 additions and 20 deletions

View File

@@ -1878,6 +1878,6 @@ in_word_set (register const char *str, register size_t len)
return &wordlist[key];
}
}
return 0;
return (struct charset *) 0;
}