code_junkie

C / C++ compiler warnings: do you clean up all your code to remove them or leave them in?

Nov 11th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. typedef struct _X * X; // from external header, not 64-bit portable
  2.  
  3. #pragma warning( push )
  4. #pragma warning( disable: 4312 ) // 64-bit portability warning
  5. X x = reinterpret_cast< X >( 0xDDDDDDDD ); // we know X not 64-bit portable
  6. #pragma warning( pop )
Add Comment
Please, Sign In to add comment