This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
int8_t problem
- From: Okko Willeboordse <trash at willeboordse dot demon dot nl>
- To: libc-alpha at sourceware dot org
- Date: Thu, 16 Nov 2006 21:10:18 +0100
- Subject: int8_t problem
Hello,
Using
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
glibc-devel Version: 2.3.5-5mdk Architecture: i586 Size: 9997 KB
I found that int8_t is defined in both;
stdint.h and sys/types.h
in different ways.
Depending on what I include I get different definitions.
Added to that, in sys/types.h __attribute__ is used in
the definition.
My Lint (Gimpel) doesn't know about __attribute__ so it ignores it.
This results in different definitions of int8_t.
When stdint.h is included int8_t is signed char and when
sys/types.h is included int8_t is int and my lint starts
issuing false positives.
What should I do?