Skip to content
Snippets Groups Projects
Commit 83a74d20 authored by Duncan Coutts's avatar Duncan Coutts Committed by Marge Bot
Browse files

Conditionally ignore some GCC warnings

Some GCC versions don't know about some warnings, and they complain
that we're ignoring unknown warnings. So we try to ignore the warning
based on the GCC version.
parent 8023bad4
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,9 @@
* simply disable these two warnings for the whole file.
*/
#pragma GCC diagnostic push
#if __GNUC__ >= 5
#pragma GCC diagnostic ignored "-Wsuggest-attribute=noreturn"
#endif
#pragma GCC diagnostic ignored "-Wmissing-noreturn"
#pragma GCC diagnostic ignored "-Wunused-parameter"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment