tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] TCC on OS X throws little but annoying error


From: Mario Rugiero
Subject: Re: [Tinycc-devel] TCC on OS X throws little but annoying error
Date: Mon, 16 Dec 2013 07:00:49 -0200

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 <address@hidden>
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:

address@hidden ~/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
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]