Skip to content
Snippets Groups Projects
Commit 76b1de5b authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #5949: test gcc version before disabling unused-but-set warning

parent 0a99eab1
Branches
Tags
No related merge requests found
......@@ -31,9 +31,13 @@
#ifndef __SFL_CALLMANAGER_H__
#define __SFL_CALLMANAGER_H__
#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
/* This warning option only exists for gcc 4.6.0 and greater. */
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#include "callmanager-glue.h"
#pragma GCC diagnostic warning "-Wignored-qualifiers"
#pragma GCC diagnostic warning "-Wunused-parameter"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment