Opened 8 years ago
Last modified 8 years ago
#72 closed defect
starting main — at Initial Version
| Reported by: | pabuhr | Owned by: | |
|---|---|---|---|
| Priority: | trivial | Component: | cfa-cc |
| Version: | 1.0 | Keywords: | |
| Cc: |
Description
gcc accepts the following as the starting main routine:
int main( const volatile int argc, const char * volatile * const argv ) {}
but cfa does not:
cfa test.c
CFA Version 1.0.0 (debug)
test.c: In function 'invoke_main':
test.c:9:144: warning: passing argument 2 of '__main__Fi_CViCPVPCc__1' from incompatible pointer type [-Wincompatible-pointer-types]
test.c:7:12: note: expected 'const char * volatile* const' but argument is of type 'char **'
int main( const volatile int d1, const char * volatile * const d2 ) {}
Note:
See TracTickets
for help on using tickets.