Skip to content

Commit

Permalink
fix(build): disable -Wconversion to make compilation easier
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Apr 29, 2024
1 parent ca42153 commit 8b8b4ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Performance.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ static float lerp(float x, float start, float end) {
// See https://documentation.help/DirectMusic/dmusiostylenote.htm
static uint32_t DmPerformance_convertIoTimeRange(uint8_t range) {
uint32_t result = 0;
if (0 <= range && range <= 190) {
if (range <= 190) {
result = range;
} else if (191 <= range && range <= 212) {
result = ((range - 190) * 5) + 190;
Expand Down
2 changes: 1 addition & 1 deletion support/BuildSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ endfunction()
## COMPILE(list): A list containing the compiler play_mode_flags
## LINK(list): A list containing the linker play_mode_flags
function(bs_internal_select_cflags_gcc SANITIZERS COMPILE LINK)
list(APPEND _INTERNAL_FLAGS "-Wall" "-Wextra" "-Werror" "-Wconversion" "-Wshadow" "-Wpedantic" "-fPIC" "-flto")
list(APPEND _INTERNAL_FLAGS "-Wall" "-Wextra" "-Werror" "-Wshadow" "-Wpedantic" "-fPIC" "-flto")

if (CMAKE_BUILD_TYPE MATCHES "^Debug" AND ${SANITIZERS} AND NOT WIN32)
list(APPEND _INTERNAL_FLAGS "-fsanitize=address" "-fsanitize=undefined" "-fsanitize=leak")
Expand Down

0 comments on commit 8b8b4ef

Please sign in to comment.