assistant-sdk-cpp
                                
                                 assistant-sdk-cpp copied to clipboard
                                
                                    assistant-sdk-cpp copied to clipboard
                            
                            
                            
                        Having problems compiling grpc folder
When I do make in the grpc directory I get a warning because of a cast in connect.c and it stops compiling because it treats all warnings as errors. Heres the terminal message:
third_party/boringssl/crypto/bio/connect.c: In function ‘conn_callback_ctrl’:
third_party/boringssl/crypto/bio/connect.c:491:29: error: cast between incompatible function types from ‘bio_info_cb’ {aka ‘long int (*)(struct bio_st *, int,  const char *, int,  long int,  long int)’} to ‘int (*)(const struct bio_st *, int,  int)’ [-Werror=cast-function-type]
       data->info_callback = (int (*)(const struct bio_st *, int, int))fp;
                             ^
cc1: all warnings being treated as errors
Makefile:2899: recipe for target '/home/eduardojj/assistant-sdk-cpp/grpc/objs/opt/third_party/boringssl/crypto/bio/connect.o' failed
make: *** [/home/eduardojj/assistant-sdk-cpp/grpc/objs/opt/third_party/boringssl/crypto/bio/connect.o] Error 1
Thank you.
How are you compiling? Can you not treat warnings as errors?
How are you compiling? Can you not treat warnings as errors?
I'm only doing make, I already tried make -w and it gave the error but compiled all the other files. I tried changing the makefile content to no avail and even tried to fix the error in the connect.c but the story was the same. I can try to compile the file alone and see what happens.
EDIT: the compiler i have is gcc
The make I'm using is
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
The make I'm using is
GNU Make 4.2.1 Built for x86_64-pc-linux-gnu
Im using
GNU Make 4.1
Built for x86_64-pc-linux-gnu