Revert "Avoid warning with Clang that doesn't have -Wunused-but-set-parameter"
This reverts commitd69bc9c939
, which isn't needed any more now that01aa52b5e9
"Work around -Werror,-Wunknown-pragmas" makes the whole pragma block conditional on __GNUC__ >= 7 (which Clang does not fulfill).
This commit is contained in:
@@ -12,10 +12,8 @@
|
||||
#if defined __GNUC__ && __GNUC__ >= 7
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated"
|
||||
#ifndef __clang__
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
||||
#endif
|
||||
#endif
|
||||
#include <libcmis/libcmis.hxx>
|
||||
#if defined __GNUC__ && __GNUC__ >= 7
|
||||
#pragma GCC diagnostic pop
|
||||
|
@@ -15,10 +15,8 @@
|
||||
#if defined __GNUC__ && __GNUC__ >= 7
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated"
|
||||
#ifndef __clang__
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
||||
#endif
|
||||
#endif
|
||||
#include <libcmis/libcmis.hxx>
|
||||
#if defined __GNUC__ && __GNUC__ >= 7
|
||||
#pragma GCC diagnostic pop
|
||||
|
@@ -27,10 +27,8 @@
|
||||
#if defined __GNUC__ && __GNUC__ >= 7
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated"
|
||||
#ifndef __clang__
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
||||
#endif
|
||||
#endif
|
||||
#include <libcmis/libcmis.hxx>
|
||||
#if defined __GNUC__ && __GNUC__ >= 7
|
||||
#pragma GCC diagnostic pop
|
||||
|
@@ -10,10 +10,8 @@
|
||||
#if defined __GNUC__ && __GNUC__ >= 7
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated"
|
||||
#ifndef __clang__
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
||||
#endif
|
||||
#endif
|
||||
#include <libcmis/libcmis.hxx>
|
||||
#if defined __GNUC__ && __GNUC__ >= 7
|
||||
#pragma GCC diagnostic pop
|
||||
|
Reference in New Issue
Block a user