Skip to content

Commit 3186b68

Browse files
committed
Fix warnings
1 parent bd64ffe commit 3186b68

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.clang-tidy

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Checks: >
2222
-readability-function-cognitive-complexity,
2323
-readability-isolate-declaration,
2424
-readability-magic-numbers,
25+
-readability-math-missing-parentheses,
2526
-readability-uppercase-literal-suffix
2627
CheckOptions:
2728
- key: readability-braces-around-statements.ShortStatementLines

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ if (CMAKE_C_COMPILER_ID MATCHES "Clang")
7272
# there appears to be no solution for C pointers.
7373
set_property(TARGET glfm PROPERTY COMPILE_OPTIONS -Weverything -Wwrite-strings -Wno-unknown-warning-option
7474
-Wno-padded -Wno-covered-switch-default -Wno-declaration-after-statement -Wno-unsafe-buffer-usage
75+
-Wno-missing-include-dirs
7576
${GLFM_COMPILE_OPTIONS})
7677
elseif (CMAKE_C_COMPILER_ID MATCHES "GNU")
7778
set_property(TARGET glfm PROPERTY COMPILE_OPTIONS -Wall -Wextra -Wpedantic -Wwrite-strings ${GLFM_COMPILE_OPTIONS})

src/glfm_apple.m

+6
Original file line numberDiff line numberDiff line change
@@ -1987,6 +1987,12 @@ - (BOOL)handlePress:(UIPress *)press withAction:(GLFMKeyAction)action {
19871987
case UIPressTypePageDown:
19881988
keyCode = GLFMKeyCodePageDown;
19891989
break;
1990+
#if __TV_OS_VERSION_MAX_ALLOWED >= __TVOS_18_1
1991+
case UIPressTypeTVRemoteOneTwoThree:
1992+
// Fallthrough
1993+
case UIPressTypeTVRemoteFourColors:
1994+
// Fallthrough
1995+
#endif
19901996
default:
19911997
keyCode = GLFMKeyCodeUnknown;
19921998
break;

0 commit comments

Comments
 (0)