Skip to content

Commit

Permalink
Remove warning, and add -Wextra
Browse files Browse the repository at this point in the history
  • Loading branch information
peadar committed Sep 30, 2023
1 parent 698f3e6 commit 22cc95e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ add_definitions(-DVERSION=${VERSION_TAG})
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS ON)

add_definitions("-Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE")
add_definitions("-Wall -Wmove -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE")
# Adding frame pointers makes things easy to run performance measurements with,
# and doesn't cost much itself.
add_definitions("-fno-omit-frame-pointer")
Expand Down
1 change: 0 additions & 1 deletion reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ MemReader::readULEB128(Off off) const
std::pair<intmax_t, size_t>
MemReader::readSLEB128(Off off) const
{
auto p = reinterpret_cast<const char *>(data) + off;
return readleb128<intmax_t>(ptroff(data, off));
}

Expand Down

0 comments on commit 22cc95e

Please sign in to comment.