mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
build: set char to always be signed
Sticking to the same convention makes it easier to reason about the code and reduces complexity.
This commit is contained in:
@@ -100,7 +100,8 @@ else()
|
||||
-Wdouble-promotion
|
||||
-Wmissing-noreturn
|
||||
-Wmissing-format-attribute
|
||||
-Wmissing-prototypes)
|
||||
-Wmissing-prototypes
|
||||
-fsigned-char)
|
||||
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
target_compile_options(main_lib INTERFACE -fno-common
|
||||
@@ -172,11 +173,6 @@ if(CI_BUILD)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
option(UNSIGNED_CHAR "Set char to be unsigned" OFF)
|
||||
if(UNSIGNED_CHAR)
|
||||
target_compile_options(main_lib INTERFACE -funsigned-char)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(main_lib INTERFACE INCLUDE_GENERATED_DECLARATIONS)
|
||||
|
||||
# Remove --sort-common from linker flags, as this seems to cause bugs (see #2641, #3374).
|
||||
|
Reference in New Issue
Block a user