libcfg+ - Viewing Bug Advanced Details [ Go Back ]
37 library core major always 2003-02-24 18:58 2003-02-24 22:45
rajo  
 
normal  
confirmed current from CVS  
open  
none  
none  
can't compile example with -Wall -pedantic
Programs like example in doc/ directory is not compilable with -Wall -pedantic flags.
Error follows
<pre>
18:51 amd2 [~/prog/cvs/libcfg+/doc/examples]: make
cc -I../../src -O2 -Wall -Wshadow -pedantic -ansi -c -o example.o example.c
example.c: In function `main':
example.c:46: initializer element is not computable at load time
example.c:46: (near initialization for `options[0]')
example.c:47: initializer element is not computable at load time
example.c:47: (near initialization for `options[1]')
example.c:48: initializer element is not computable at load time
example.c:48: (near initialization for `options[2]')
example.c:49: initializer element is not computable at load time
example.c:49: (near initialization for `options[3]')
example.c:51: initializer element is not computable at load time
example.c:51: (near initialization for `options[4]')
make: *** [example.o] Error 1
18:51 amd2 [~/prog/cvs/libcfg+/doc/examples]:
</pre>
cd libcfg+/dox/example && make CFLAGS="-Wall -pedantic"
void *value field in structure struct cfg_option will be not initialized with pointer to variable

There are no notes attached to this bug.