diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2023-04-08 17:19:09 +0200 |
---|---|---|
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2023-04-08 17:24:02 +0200 |
commit | 0eace0212e35e9ed6ba5d084f787402406fa440c (patch) | |
tree | c506cdf82d749b6d793b04590bdd546d01029194 /src/afl-fuzz-redqueen.c | |
parent | c1af004451e2732b855aafb567fccbd615b5214e (diff) | |
download | afl++-0eace0212e35e9ed6ba5d084f787402406fa440c.tar.gz |
afl-cc: Avoid casts of string literals to char*, in definition of __AFL_INIT() etc.
With the right -W options, compilers may complain about the cast of string literals (for PERSIST_SIG and DEFER_SIG) to (char*), and they're right to do so, because string literals are constant. Since some projects enable -Werror, this can lead to a broken build with afl-cc. Let's simply cast to (const char *), which preserves the constness of the string literal.
Diffstat (limited to 'src/afl-fuzz-redqueen.c')
0 files changed, 0 insertions, 0 deletions