[zeromq-dev] [czmq] src/zsocket.c, this looks like unused variable to me
Pieter Hintjens
ph at imatix.com
Sat Jul 14 11:01:58 CEST 2012
On Thu, Jul 12, 2012 at 1:42 PM, Gilles J. Seguin <segg2 at videotron.ca> wrote:
> fedora gcc-4.7.0-5.fc17.x86_64
> $ gcc -I../include -Werror -Wno-unused -Wall -c zsocket.c -o zsocket.o
> zsocket.c: In function ‘zsocket_poll’:
> zsocket.c:152:9: error: unused variable ‘rc’ [-Werror=unused-variable]
> cc1: all warnings being treated as errors
Indeed, it's unused. Some other random compiler was complaining about
"return value discarded".
Feel free to send a pull request to fix this.
-Pieter
More information about the zeromq-dev
mailing list