Skip to content

Commit

Permalink
Ignore more warning of generated protobuf files than not included in …
Browse files Browse the repository at this point in the history
…`-Wall` and `-Wextra`

Signed-off-by: owent <[email protected]>
  • Loading branch information
owent committed Mar 22, 2023
1 parent 9b222f2 commit fac29f7
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
# pragma warning(disable : 4267)
# pragma warning(disable : 4668)
# pragma warning(disable : 4946)
# pragma warning(disable : 6001)
# pragma warning(disable : 6244)
# pragma warning(disable : 6246)
#endif

#if defined(__GNUC__) && !defined(__clang__) && !defined(__apple_build_version__)
Expand All @@ -30,9 +33,32 @@
# endif
# pragma GCC diagnostic ignored "-Wunused-parameter"
# pragma GCC diagnostic ignored "-Wtype-limits"
# pragma GCC diagnostic ignored "-Wsign-compare"
# pragma GCC diagnostic ignored "-Wsign-conversion"
# pragma GCC diagnostic ignored "-Wshadow"
# pragma GCC diagnostic ignored "-Wuninitialized"
# pragma GCC diagnostic ignored "-Wconversion"
# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409
# pragma GCC diagnostic ignored "-Wfloat-conversion"
# endif
# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 501
# pragma GCC diagnostic ignored "-Wsuggest-override"
# endif
#elif defined(__clang__) || defined(__apple_build_version__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunused-parameter"
# pragma clang diagnostic ignored "-Wtype-limits"
# pragma clang diagnostic ignored "-Wshadow-field"
# pragma clang diagnostic ignored "-Wsign-compare"
# pragma clang diagnostic ignored "-Wsign-conversion"
# pragma clang diagnostic ignored "-Wshadow"
# pragma clang diagnostic ignored "-Wuninitialized"
# pragma clang diagnostic ignored "-Wconversion"
# if !(((__clang_major__ * 100) + __clang_minor__) >= 305)
# pragma GCC diagnostic ignored "-Wsuggest-override"
# pragma GCC diagnostic ignored "-Winconsistent-missing-override"
# endif
# if !(((__clang_major__ * 100) + __clang_minor__) >= 309)
# pragma GCC diagnostic ignored "-Wfloat-conversion"
# endif
#endif

0 comments on commit fac29f7

Please sign in to comment.