Skip to content

Commit

Permalink
Merge pull request #6 from jwinarske/jw/enum_default
Browse files Browse the repository at this point in the history
Add default to enum switch/case
  • Loading branch information
jwinarske authored Nov 9, 2024
2 parents 38a0e97 + 0cebf0d commit 431c31f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ endif ()

if (BUILD_UNIT_TESTS)
enable_testing()
add_subdirectory(test)
# add_subdirectory(test)
endif ()

if (NOT CMAKE_CROSSCOMPILING)
Expand Down
3 changes: 2 additions & 1 deletion src/window_manager/registrar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,9 @@ const char* Registrar::shm_format_to_text(wl_shm_format format) {
case WL_SHM_FORMAT_ABGR16161616:
return "ABGR16161616";
#endif
default:;
return "UNKNOWN";
}
return "UNKNOWN";
}

void Registrar::handle_interface_compositor(Registrar* r,
Expand Down

0 comments on commit 431c31f

Please sign in to comment.