Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. //suppress the warnings:
  2. #if defined(__GNUC__)
  3. #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
  4. #pragma GCC diagnostic push
  5. #pragma GCC diagnostic ignored "-Wreorder"
  6. #pragma GCC diagnostic ignored "-Wunused-function"
  7. #pragma GCC diagnostic ignored "-Wunused-variable"
  8. #pragma GCC diagnostic ignored "-Wsign-compare"
  9. #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  10. #pragma GCC diagnostic ignored "-Wsequence-point"
  11. #endif
  12. #endif // __GNUC__
  13.  
  14. //here you call the function...
  15. func(x,y,z);
  16.  
  17. // bring back the warnings to normal state
  18. #if defined(__GNUC__)
  19. #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
  20. #pragma GCC diagnostic pop
  21. #endif
  22. #endif // __GNUC__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement