From 9ce2ac70d1b0f4575684518c0b3e8828c47008fd Mon Sep 17 00:00:00 2001 From: onihusube <44743040+onihusube@users.noreply.github.com> Date: Thu, 28 Apr 2022 15:32:00 +0900 Subject: [PATCH 1/2] Suppress warnings in ARM environments --- include/ProgramOptions.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/ProgramOptions.hxx b/include/ProgramOptions.hxx index 716f293..c172eef 100644 --- a/include/ProgramOptions.hxx +++ b/include/ProgramOptions.hxx @@ -254,9 +254,12 @@ namespace po { inline bool case_insensitive_eq(char x, char y) { if(x == y) return true; +#ifndef __CHAR_UNSIGNED__ if(x >= 0 && y >= 0) +#else if(std::tolower(x) == std::tolower(y)) return true; +#endif return false; } From 776fd5fcf90eb344938efafee2ef2c468c670883 Mon Sep 17 00:00:00 2001 From: onihusube <44743040+onihusube@users.noreply.github.com> Date: Thu, 28 Apr 2022 15:49:27 +0900 Subject: [PATCH 2/2] Remove erroneous #else block --- include/ProgramOptions.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/ProgramOptions.hxx b/include/ProgramOptions.hxx index c172eef..0555816 100644 --- a/include/ProgramOptions.hxx +++ b/include/ProgramOptions.hxx @@ -256,10 +256,9 @@ namespace po { return true; #ifndef __CHAR_UNSIGNED__ if(x >= 0 && y >= 0) -#else +#endif if(std::tolower(x) == std::tolower(y)) return true; -#endif return false; }