BytesClub / serverX

A HTTP/HTTPS Web Server Handler by (C) Bytes Club
Other
3 stars 3 forks source link

Header: Fix deprecated error #13

Closed rubencm closed 7 years ago

rubencm commented 7 years ago

I was having this error in archlinux

$ make
gcc -ggdb3 -O0 -O3 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wshadow -U__STRICT_ANSI__ -Iinc -c src/urldecode.c -o bin/urldecode.o
In file included from /usr/include/getopt.h:24:0,
                 from inc/serverX.h:46,
                 from src/urldecode.c:21:
/usr/include/features.h:183:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
cc1: todos los avisos se tratan como errores
make: *** [Makefile:66: bin/urldecode.o] Error 1
0xTheProDev commented 7 years ago

@rubencm Awesome job. Further Reading: Contributing Guideline