Skip to content

Commit

Permalink
Fix error message, and warn on sign mismatches for format specifiers (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
thbeu authored Jan 26, 2024
1 parent 8cf92b2 commit 73e3bd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ target_include_directories(${PACKAGE}
if(MSVC)
target_compile_options(${PACKAGE} PRIVATE /W4)
else()
target_compile_options(${PACKAGE} PRIVATE -Wall -Wextra -pedantic)
target_compile_options(${PACKAGE} PRIVATE -Wall -Wextra -Wformat-signedness -Wno-unknown-warning-option -pedantic)
endif()

if(WIN32 AND NOT CYGWIN)
Expand Down
2 changes: 1 addition & 1 deletion shpopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ int SHPAPI_CALL SHPRestoreSHX(const char *pszLayer, const char *pszAccess,
"Error parsing .shp to restore .shx. "
"Invalid record length = %u at record starting at "
"offset %u",
nSHPType, nCurrentSHPOffset);
nRecordLength, nCurrentSHPOffset);
psHooks->Error(szErrorMsg);

nRetCode = FALSE;
Expand Down

0 comments on commit 73e3bd0

Please sign in to comment.