Opened 4 years ago

Closed 4 years ago

#72 closed defect (fixed)

starting main

Reported by: pabuhr Owned by: Thierry Delisle <tdelisle@…>
Priority: trivial Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description (last modified by pabuhr)

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 argc, const char * volatile * const argv ) {}

Change History (2)

comment:1 Changed 4 years ago by pabuhr

Description: modified (diff)

comment:2 Changed 4 years ago by Thierry Delisle <tdelisle@…>

Owner: set to Thierry Delisle <tdelisle@…>
Resolution: fixed
Status: newclosed

In 1619acd:

[fixes #72] only fixes the cast problem

Note: See TracTickets for help on using tickets.