merlimat opened a new pull request #2029: Fixed C99 variable initialization in 
cgo header
URL: https://github.com/apache/incubator-pulsar/pull/2029
 
 
   ### Motivation
   
   Getting this error on Centos7 when fetching and compiling the go client lib.
   
   ```
   $ go get -u github.com/apache/incubator-pulsar/pulsar-client-go/pulsar
   # github.com/apache/incubator-pulsar/pulsar-client-go/pulsar
   In file included from 
root/go/src/github.com/apache/incubator-pulsar/pulsar-client-go/pulsar/c_client.go:24:0:
   ./c_go_pulsar.h: In function 'freeStringArray':
   ./c_go_pulsar.h:132:5: error: 'for' loop initial declarations are only 
allowed in C99 mode
        for (int i = 0; i < size; i++) {
        ^
   ./c_go_pulsar.h:132:5: note: use option -std=c99 or -std=gnu99 to compile 
your code
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to