On 2017-05-30 17:10 +0200, Vincent Lefevre wrote: > Is it normal that -std=c90 -pedantic-errors allows to use > > #include <stdint.h> > > ? > > This is annoying when one wants to check for code portability > (and bugs). I don't think this is a GCC issue. GCC just find stdint.h, and include it into the source file. GCC can not just warn for all cases with C90 and stdint.h. For example, one MSP430 developer in my school use his own stdint.h for C90 programs. Of course we can add ~~~~~ #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L #warning "This is a C99 header and should not be used in C90." #endif ~~~~~ to stdint.h. But stdint.h is in libc, not GCC. Maybe you can persuade libc developers to add this checking in every C99 header. -- Xi Ruoyao <ryxi@xxxxxxxxxxxxxxxxx> School of Aerospace Science and Technology, Xidian University