Skip to content

Commit

Permalink
Fixes msvc-related typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dylon committed Feb 19, 2024
1 parent 8902ff8 commit 2e05aab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

SET(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
SET(CMAKE_C_FLAGS_DEBUG "-g -O0")
if(MSVC)
SET(CMAKE_CXX_FLAGS_DEBUG "/O0")
SET(CMAKE_C_FLAGS_DEBUG "/O0")
else()
SET(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
SET(CMAKE_C_FLAGS_DEBUG "-g -O0")
endif()

set(CMAKE_COMPILE_WARNING_AS_ERROR ON)

Expand Down
2 changes: 1 addition & 1 deletion src/liblevenshtein/collection/dawg_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ auto DawgNode::add_edge(char label, DawgNode *target) -> DawgNode * {

#if _MSC_VER && !__INTEL_COMPILER
#pragma warning(push)
#pragma warning(ignore : 5232)
#pragma warning(disable : 5232)
#endif

auto DawgNode::operator==(const DawgNode &other) const -> bool {
Expand Down

0 comments on commit 2e05aab

Please sign in to comment.