We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-Wcast-qual
const
In readChunk_iTXt:
readChunk_iTXt
error = lodepng_add_itext_sized(info, key, langtag, transkey, (char*)(data + begin), length);
data is a const char*. It happens that lodepng_add_itext_sized takes a const char* str, so this can become:
data
const char*
lodepng_add_itext_sized
const char* str
error = lodepng_add_itext_sized(info, key, langtag, transkey, (const char*)(data + begin), length);
The same (char*) to (const char*) change could be done here:
(char*)
(const char*)
if(!error) error = lodepng_add_itext_sized(info, key, langtag, transkey, (char*)str, size);
The text was updated successfully, but these errors were encountered:
Fix LodePNG to avoid -Wcast-qual warnings
24c830e
<lvandeve/lodepng#160>
90bec40
a41d409
77dc42d
No branches or pull requests
In
readChunk_iTXt
:data
is aconst char*
. It happens thatlodepng_add_itext_sized
takes aconst char* str
, so this can become:The same
(char*)
to(const char*)
change could be done here:The text was updated successfully, but these errors were encountered: