Skip to content

Error during make examples #26

@jrupp

Description

@jrupp

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions