Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (BUILD_EMULATOR)

# Set default compile flags for GCC
if (CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(-g -v -Wall -Wextra -Wunused -O3)
add_compile_options(-g -v -Wall -Wextra -Werror -Wunused -O3)
endif (CMAKE_COMPILER_IS_GNUCXX)

# WARDuino CLI
Expand Down
4 changes: 2 additions & 2 deletions src/Debug/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ void Debugger::setSnapshotPolicy(Module *m, uint8_t *interruptData) {

std::optional<uint32_t> getPrimitiveBeingCalled(Module *m, uint8_t *pc_ptr) {
if (!pc_ptr) {
return {};
return std::nullopt;
}

// TODO: Support call_indirect
Expand All @@ -966,7 +966,7 @@ std::optional<uint32_t> getPrimitiveBeingCalled(Module *m, uint8_t *pc_ptr) {
return fidx;
}
}
return {};
return std::nullopt;
}

void Debugger::handleSnapshotPolicy(Module *m) {
Expand Down