New issue

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

GCC compile warning: In function ‘discord_inflate.isra.16’: ‘gzres’ may be used uninitialized in this function #220

Closed
pabs3 opened this Issue Dec 10, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@pabs3
Copy link
Contributor

pabs3 commented Dec 10, 2018

When I compile the latest git using GCC 8.2.0 from Debian testing I get a compile warning:

cc -fPIC -O2 -g -pipe -Wall -std=c99 -DDISCORD_PLUGIN_VERSION='"0.9.2018.12.10.git.14bc817"' -DMARKDOWN_PIDGIN -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\"  -shared -o libdiscord.so libdiscord.c markdown.c -Wl,-z,relro `pkg-config purple glib-2.0 json-glib-1.0 --libs --cflags`   -Ipurple2compat -g -ggdb
libdiscord.c: In function ‘discord_inflate.isra.16’:
libdiscord.c:3477:20: warning: ‘gzres’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (gzres != Z_OK && gzres != Z_STREAM_END) {
                    ^
@bobbybee

This comment has been minimized.

Copy link
Collaborator

bobbybee commented Dec 16, 2018

Resolved

@bobbybee bobbybee closed this Dec 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment