-std=c90 -pedantic-errors and <stdint.h>

Vincent Lefevre vincent+gcc@vinc17.org
Tue May 30 23:11:00 GMT 2017


On 2017-05-31 00:19:27 +0800, Xi Ruoyao wrote:
> 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.

However, GCC knows about standard headers, so that it could
blacklist <stdint.h> as a special case.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Gcc-help mailing list