Skip to content

Commit 682ca9b

Browse files
committed
lv-tool: Address Clang 17 warning -Wtautological-unsigned-enum-zero-compare
1 parent 3a60ce5 commit 682ca9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libvisual/tools/lv-tool/display/sdl_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace {
117117
for (unsigned int i = VISUAL_GL_ATTRIBUTE_NONE; i < VISUAL_GL_ATTRIBUTE_LAST; i++) {
118118
SDL_GLattr sdl_attribute = sdl_gl_attribute_map[vidoptions->gl_attrs[i].attribute];
119119

120-
if (sdl_attribute < 0) {
120+
if (sdl_attribute == static_cast<SDL_GLattr> (-1)) {
121121
continue;
122122
}
123123

libvisual/tools/lv-tool/display/stdout_sdl_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace {
131131
SDL_GLattr sdl_attribute =
132132
sdl_gl_attribute_map[vidoptions->gl_attrs[i].attribute];
133133

134-
if (sdl_attribute < 0) {
134+
if (sdl_attribute == static_cast<SDL_GLattr> (-1)) {
135135
continue;
136136
}
137137

0 commit comments

Comments
 (0)