------- Comment #1 from redi at gcc dot gnu dot org  2009-12-08 20:32 -------
reduced:
void f() {
  unsigned short i = 0;
  void* p = (void*)i;
}
this warns in 32-bit or 64-bit mode using the C compiler, and is controlled by
this option that g++ doesn't support:

-Wno-int-to-pointer-cast (C and Objective-C only)
Suppress warnings from casts to pointer type of an integer of a different size.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28584

Reply via email to