Well, local fixes are the only valid ones here, I believe. You could manually define __GNUC__ as something greater than 4. You could do it setting CFLAGS to contain such, for example.
2013/12/16 Kevin Ingwersen <[email protected]> > Hey there! > > TCC built extremely fast, and I really like that fact. So after building, > I tried out ex1.c - and learned how Apple’s cdefs.h file includes a > #warning: > > Ingwie@Ingwies-Air ~/Downloads/tcc-0.9.26/examples $ ./ex1.c > In file included from ./ex1.c:2: > In file included from /usr/local/lib/tcc/include/tcclib.h:10: > In file included from /usr/include/stddef.h:69: > In file included from /usr/include/_types.h:27: > In file included from /usr/include/sys/_types.h:32: > /usr/include/sys/cdefs.h:81: warning: #warning "Unsupported compiler > detected" > Hello World > > Which correspondents to these lines: > > 78 /* This SDK is designed to work with clang and specific versions > of > 79 * gcc >= 4.0 with Apple's patch sets */ > 80 #if !defined(__GNUC__) || __GNUC__ < 4 > 81 #warning "Unsupported compiler detected“ > 82 #endif > > Is there a possibility to disable #warning within that file on OS X? > > Kind regards, > Ingwie > _______________________________________________ > Tinycc-devel mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/tinycc-devel >
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
