Build failure with -Wgnu/clang #110

Closed
jbergstroem opened this Issue Apr 15, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

jbergstroem commented Apr 15, 2012

beanstalkd currently fails to build with clang 3.0/3.1 - tested on fbsd9-release and OS X.

# CC=clang gmake   
clang -Wall -Werror   -c -o conn.o conn.c
In file included from conn.c:8:
./dat.h:279:16: error: field 'reserved_jobs' with variable sized type 'struct job' not at the end of a struct or class is a GNU
      extension [-Werror,-Wgnu]
    struct job reserved_jobs; // linked list header
               ^
1 error generated.
gmake: *** [conn.o] Error 1

kr closed this in 1b3f603 Apr 15, 2012

Owner

kr commented Apr 15, 2012

Well spotted. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment