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:
@@ -246,5 +246,5 @@ in_word_set (register const char *str, register size_t len)
|
||||
return s;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return (const char *) 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user