fix & suppress warnings of generated code

This commit is contained in:
wmayer
2016-12-30 13:31:31 +01:00
parent b2767f7197
commit efe14610b7
5 changed files with 46 additions and 16 deletions

View File

@@ -40,7 +40,11 @@
#endif
#endif
#ifdef __GNUC__
// class and struct used for SbkObject
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wmismatched-tags"
#elif defined (__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
@@ -81,7 +85,9 @@ PyTypeObject** SbkPySide2_QtWidgetsTypes=NULL;
# endif
#endif
#ifdef __GNUC__
#if defined(__clang__)
# pragma clang diagnostic pop
#elif defined (__GNUC__)
# pragma GCC diagnostic pop
#endif