1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

Suppress -Wchar-subscripts on Clang

For example:

    ./rogueviz/platformer.cpp:388:14: error: array subscript is
    of type 'char' [-Werror,-Wchar-subscripts]
      if(keystate['3'])
                 ^~~~
This commit is contained in:
Arthur O'Dwyer 2022-07-05 13:16:10 -04:00
parent 559301e69f
commit ad47db4240

View File

@ -83,7 +83,7 @@ ifeq (${TOOLCHAIN},clang)
CXXFLAGS_STD = -std=c++11
CXXFLAGS_EARLY += -fPIC
CXXFLAGS_EARLY += -W -Wall -Wextra -Wsuggest-override -pedantic
CXXFLAGS_EARLY += -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-maybe-uninitialized -Wno-unknown-warning-option
CXXFLAGS_EARLY += -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-maybe-uninitialized -Wno-char-subscripts -Wno-unknown-warning-option
CXXFLAGS_EARLY += -Wno-invalid-offsetof
endif