Compiler.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /* Compiler.h
  2. 2015-08-02 : Igor Pavlov : Public domain */
  3. #ifndef __7Z_COMPILER_H
  4. #define __7Z_COMPILER_H
  5. #ifdef _MSC_VER
  6. #ifdef UNDER_CE
  7. #define RPC_NO_WINDOWS_H
  8. /* #pragma warning(disable : 4115) // '_RPC_ASYNC_STATE' : named type definition in parentheses */
  9. #pragma warning(disable : 4201) // nonstandard extension used : nameless struct/union
  10. #pragma warning(disable : 4214) // nonstandard extension used : bit field types other than int
  11. #endif
  12. #if _MSC_VER >= 1300
  13. #pragma warning(disable : 4996) // This function or variable may be unsafe
  14. #else
  15. #pragma warning(disable : 4511) // copy constructor could not be generated
  16. #pragma warning(disable : 4512) // assignment operator could not be generated
  17. #pragma warning(disable : 4514) // unreferenced inline function has been removed
  18. #pragma warning(disable : 4702) // unreachable code
  19. #pragma warning(disable : 4710) // not inlined
  20. #pragma warning(disable : 4786) // identifier was truncated to '255' characters in the debug information
  21. #endif
  22. #endif
  23. #define UNUSED_VAR(x) (void)x;
  24. /* #define UNUSED_VAR(x) x=x; */
  25. #endif