File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -896,11 +896,11 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
896896 # /usr/lib/llvm-6.0/lib/clang/6.0.0/lib/linux/libclang_rt.ubsan_minimal-x86_64.so
897897 # at runtime when used with symbol-hidden code (e.g. pybind11 module)
898898
899- set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code ${CMAKE_CXX_FLAGS } " )
899+ set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wsign-compare ${CMAKE_CXX_FLAGS } " )
900900 elseif ("${CMAKE_CXX_COMPILER_ID } " STREQUAL "Intel" )
901901 set (CMAKE_CXX_FLAGS "-w3 -wd193,383,1572 ${CMAKE_CXX_FLAGS } " )
902902 elseif ("${CMAKE_CXX_COMPILER_ID } " STREQUAL "GNU" )
903- set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wunreachable-code ${CMAKE_CXX_FLAGS } " )
903+ set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wunreachable-code -Wsign-compare ${CMAKE_CXX_FLAGS } " )
904904 elseif ("${CMAKE_CXX_COMPILER_ID } " STREQUAL "MSVC" )
905905 # Warning C4503: "decorated name length exceeded, name was truncated"
906906 # Symbols longer than 4096 chars are truncated (and hashed instead)
Original file line number Diff line number Diff line change @@ -953,7 +953,7 @@ void init_RecordComponent(py::module &m) {
953953 // default arguments
954954 // offset = {0u}: expand to right dim {0u, 0u, ...}
955955 Offset offset = offset_in;
956- if ( offset_in.size () == 1u && offset_in.at (0 ) == 0u && a.ndim () > 1u )
956+ if ( offset_in.size () == 1u && offset_in.at (0 ) == 0u && a.ndim () > 1 )
957957 offset = Offset (a.ndim (), 0u );
958958
959959 // extent = {-1u}: take full size
You can’t perform that action at this time.
0 commit comments