-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Description
During a "make" or "make examples", I get the following compiler error:
#
# More usage options:
./rdkafka_example --help
cc1: warnings being treated as errors
rdkafka_performance.c: In function ‘main’:
rdkafka_performance.c:640: error: ‘rkmessages’ may be used uninitialized in this function
make[1]: *** [rdkafka_performance] Error 1
make[1]: Leaving directory `/tmp/librdkafka-master/examples'
make: *** [examples] Error 2
Changing line 640 of rdkafka_performance.c to the following fixes my problem:
rd_kafka_message_t **rkmessages=NULL;Information about my system if it helps you:
$ cat /etc/redhat-release
CentOS release 6.4 (Final)
$ uname -a
Linux XXXXXXXX 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ cc --version
cc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
$ make --version
GNU Make 3.81
Metadata
Metadata
Assignees
Labels
No labels