Re: Grrrr.... warnings

2018-04-01 Thread Willy Tarreau
On Sun, Apr 01, 2018 at 11:28:43PM +0200, Cyril Bonté wrote:
> Le 01/04/2018 à 23:24, Willy Tarreau a écrit :
> > Can someone tell me how I'm supposed to work around this one ?
> 
> It seems a patch will be available at midnight :)

Cool, thanks, I'll wait then!

Willy



Re: Grrrr.... warnings

2018-04-01 Thread Cyril Bonté

Le 01/04/2018 à 23:24, Willy Tarreau a écrit :

Can someone tell me how I'm supposed to work around this one ?


It seems a patch will be available at midnight :)



gcc -Iinclude -Iebtree -Wall  -O2 -march=native -g -fno-strict-aliasing 
-Wdeclaration-after-statement -fwrapv -fno-strict-overflow-Wno-unused-label  -DBUFSIZE=8030 
-DMAXREWRITE=1030 -DSO_MARK=36-DCONFIG_HAP_LINUX_SPLICE -DTPROXY -DCONFIG_HAP_LINUX_TPROXY 
-DCONFIG_HAP_CRYPT -DUSE_ZLIB  -DENABLE_POLL -DENABLE_EPOLL -DUSE_CPU_AFFINITY 
-DASSUME_SPLICE_WORKS -DUSE_ACCEPT4 -DNETFILTER -DUSE_THREAD -DUSE_OPENSSL  -DUSE_SYSCALL_FUTEX 
-DUSE_PCRE -I/usr/include  -DCONFIG_HAPROXY_VERSION=\"1.9-dev0-495298-299\" 
-DCONFIG_HAPROXY_DATE=\"2018/03/21\" \
   -DBUILD_TARGET='"linux2628"' \
   -DBUILD_ARCH='""' \
   -DBUILD_CPU='"native"' \
   -DBUILD_CC='"gcc"' \
   -DBUILD_CFLAGS='"-O2 -march=native -g -fno-strict-aliasing 
-Wdeclaration-after-statement -fwrapv -fno-strict-overflow -Wno-unused-label 
-DBUFSIZE=8030 -DMAXREWRITE=1030 -DSO_MARK=36"' \
   -DBUILD_OPTIONS='"USE_ZLIB=1 USE_OPENSSL=1 USE_PCRE=1"' \
-c -o src/haproxy.o src/haproxy.c

src/haproxy.c:1:1: warning: gcc has detected the presence of C code in this 
file. This language is potentially unsafe as it lets the developer do things 
that the compiler doesn't understand. Please upgrade to a new language, support 
will be deprecated in gcc-9. [-Wc-deprecated].

Thanks,
Willy




--
Cyril Bonté



Grrrr.... warnings

2018-04-01 Thread Willy Tarreau
Can someone tell me how I'm supposed to work around this one ?

gcc -Iinclude -Iebtree -Wall  -O2 -march=native -g -fno-strict-aliasing 
-Wdeclaration-after-statement -fwrapv -fno-strict-overflow-Wno-unused-label 
 -DBUFSIZE=8030 -DMAXREWRITE=1030 -DSO_MARK=36-DCONFIG_HAP_LINUX_SPLICE 
-DTPROXY -DCONFIG_HAP_LINUX_TPROXY -DCONFIG_HAP_CRYPT -DUSE_ZLIB  -DENABLE_POLL 
-DENABLE_EPOLL -DUSE_CPU_AFFINITY -DASSUME_SPLICE_WORKS -DUSE_ACCEPT4 
-DNETFILTER -DUSE_THREAD -DUSE_OPENSSL  -DUSE_SYSCALL_FUTEX -DUSE_PCRE 
-I/usr/include  -DCONFIG_HAPROXY_VERSION=\"1.9-dev0-495298-299\" 
-DCONFIG_HAPROXY_DATE=\"2018/03/21\" \
  -DBUILD_TARGET='"linux2628"' \
  -DBUILD_ARCH='""' \
  -DBUILD_CPU='"native"' \
  -DBUILD_CC='"gcc"' \
  -DBUILD_CFLAGS='"-O2 -march=native -g -fno-strict-aliasing 
-Wdeclaration-after-statement -fwrapv -fno-strict-overflow -Wno-unused-label 
-DBUFSIZE=8030 -DMAXREWRITE=1030 -DSO_MARK=36"' \
  -DBUILD_OPTIONS='"USE_ZLIB=1 USE_OPENSSL=1 USE_PCRE=1"' \
   -c -o src/haproxy.o src/haproxy.c

src/haproxy.c:1:1: warning: gcc has detected the presence of C code in this 
file. This language is potentially unsafe as it lets the developer do things 
that the compiler doesn't understand. Please upgrade to a new language, support 
will be deprecated in gcc-9. [-Wc-deprecated].

Thanks,
Willy