| libcfg+ - Viewing Bug Advanced Details | [ Go Back ] | ||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 37 | library core | major | always | 2003-02-24 18:58 | 2003-02-24 22:45 |
|
|
|||||
| Reporter: | rajo | Platform: | |||
| Assigned To: | OS: | ||||
| Priority: | normal | Version: | |||
| Status: | confirmed | Product Version: | current from CVS | ||
| Product Build: | Resolution: | open | |||
| Projection: | none | Duplicate ID: | |||
| ETA: | none | ||||
|
|
|||||
| Summary: | can't compile example with -Wall -pedantic | ||||
| Description: |
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> |
||||
| Steps To Reproduce: | cd libcfg+/dox/example && make CFLAGS="-Wall -pedantic" | ||||
| Additional Information / Solution: | void *value field in structure struct cfg_option will be not initialized with pointer to variable | ||||
| Attached Files: | |||||
| There are no notes attached to this bug. |