Unknown pragma warning in newlib

Hi,

Pushing more on *-*-rtems*, I came across
a pragma in newlib that apparently gcc
knows that clang does not.

$ cat j.c
char * mktemp (char *) __attribute__ ((__warning__ ("the use of `mktemp' is dangerous; use `mkstemp' instead")));
$ gcc -c -Wall j.c
$ clang -c j.c
j.c:1:40: warning: unknown attribute '__warning__' ignored [-Wattributes]
char * mktemp (char *) __attribute__ ((__warning__ ("the use of ...
                                        ^
1 warning generated.

Thanks.

Hi Joel,

Please file a bugzilla @ http://llvm.org/bugs/ to track this feature request. Better yet, send in a patch :). It would be very straight-forward to accept and ignore this attribute.

-Chris

The semantics seem to be almost identical to the deprecated attribute, so it should be fairly trivial to implement it properly.

David

-- Sent from my Difference Engine