Skip to content

Commit

Permalink
fix: Lua ignored warnings include GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Jun 29, 2023
1 parent 353fe98 commit 828560c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ extern "C" {
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wcast-qual"
# pragma clang diagnostic ignored "-Wimplicit-fallthrough"
#elif defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wcast-qual"
# pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#elif defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable: 4334) // result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
Expand Down Expand Up @@ -46,6 +50,8 @@ extern "C" {

#if defined(__clang__)
# pragma clang diagnostic pop
#elif defined(__GNUC__)
# pragma GCC diagnostic pop
#elif defined(_MSC_VER)
# pragma warning(pop)
#endif
Expand Down

0 comments on commit 828560c

Please sign in to comment.