[Flex-devel] flex generated files collide with GCC flag
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Jan E. <je...@me...> - 2009-03-24 21:20:12
|
Hi, when one uses GCC's -Wredundant-decls, an ugly extra warning appears: cc1: warnings being treated as errors <stdout>:3279: error: redundant redeclaration of `isatty' /usr/include/unistd.h:757: error: previous declaration of `isatty' was here make[1]: *** [scanner.o] Error 1 Since the .l file in question does not contain any use of isatty, I wonder what that extra declaration that flex puts in is there for. #ifndef __cplusplus extern int isatty (int ); #endif /* __cplusplus */ |