Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //suppress the warnings:
- #if defined(__GNUC__)
- #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wreorder"
- #pragma GCC diagnostic ignored "-Wunused-function"
- #pragma GCC diagnostic ignored "-Wunused-variable"
- #pragma GCC diagnostic ignored "-Wsign-compare"
- #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
- #pragma GCC diagnostic ignored "-Wsequence-point"
- #endif
- #endif // __GNUC__
- //here you call the function...
- func(x,y,z);
- // bring back the warnings to normal state
- #if defined(__GNUC__)
- #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
- #pragma GCC diagnostic pop
- #endif
- #endif // __GNUC__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement