http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50368
Bug #: 50368 Summary: Implicit, precision losing cast in objc/objc-api.h Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libobjc AssignedTo: unassig...@gcc.gnu.org ReportedBy: flo...@babelmonkeys.de Hy, I'm using (or trying to) libojc in conjunction with clang. In this particular case it's compiling with -Wall -Werror, and stumbles over an implicit cast in objc/objc-api.h: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/include/objc/objc-api.h:291:38: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32] return CLS_ISCLASS(_class)?_class->version:-1; Even without -Werror this would still generate a annoying and potenitally confusing warning. It would be great if this cast could be made explicit in future versions. Regards, Florian