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

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

 



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@xxxxxxxxxx> - 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)



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux