Skip to content

Instantly share code, notes, and snippets.

@olegchir
Created May 15, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olegchir/1ee83a2d219670b02259 to your computer and use it in GitHub Desktop.
Save olegchir/1ee83a2d219670b02259 to your computer and use it in GitHub Desktop.
olegchir@portal:~/git/rasp-spect$ make
gcc -Wall -Werror -Wextra -D_XOPEN_SOURCE=501 -DCUR_PATH=\"/home/olegchir/git/rasp-spect\" -c -o test.o test.c
test.c:422:3: error: initialization makes integer from pointer without a cast [-Werror]
0, NULL, 0, 0
^
test.c:422:3: error: (near initialization for ‘protocols[0].protocol_index’) [-Werror]
test.c:422:3: error: excess elements in struct initializer [-Werror]
test.c:422:3: error: (near initialization for ‘protocols[0]’) [-Werror]
test.c:423:2: error: excess elements in struct initializer [-Werror]
},
^
test.c:423:2: error: (near initialization for ‘protocols[0]’) [-Werror]
test.c:429:3: error: initialization makes integer from pointer without a cast [-Werror]
0, NULL, 0, 0
^
test.c:429:3: error: (near initialization for ‘protocols[1].protocol_index’) [-Werror]
test.c:429:3: error: excess elements in struct initializer [-Werror]
test.c:429:3: error: (near initialization for ‘protocols[1]’) [-Werror]
test.c:430:2: error: excess elements in struct initializer [-Werror]
},
^
test.c:430:2: error: (near initialization for ‘protocols[1]’) [-Werror]
test.c:431:2: error: initialization makes integer from pointer without a cast [-Werror]
{ NULL, NULL, 0, 0, 0, NULL, 0, 0} /* terminator */
^
test.c:431:2: error: (near initialization for ‘protocols[2].protocol_index’) [-Werror]
test.c:431:2: error: excess elements in struct initializer [-Werror]
test.c:431:2: error: (near initialization for ‘protocols[2]’) [-Werror]
test.c:431:2: error: excess elements in struct initializer [-Werror]
test.c:431:2: error: (near initialization for ‘protocols[2]’) [-Werror]
cc1: all warnings being treated as errors
<builtin>: recipe for target 'test.o' failed
make: *** [test.o] Error 1
olegchir@portal:~/git/rasp-spect$ gcc --version
gcc (Ubuntu 4.9.1-16ubuntu6) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment