int8_t problem
Okko Willeboordse
trash@willeboordse.demon.nl
Thu Nov 16 20:10:00 GMT 2006
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?
More information about the Libc-alpha
mailing list