Skip to content

Commit

Permalink
Fix unused var. Not showing up in my builds. Not sure why
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Collins <[email protected]>
  • Loading branch information
benmcollins committed Jan 12, 2025
1 parent 01dd6da commit 3faf199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ project(${LIBJWT_PROJECT}
HOMEPAGE_URL ${LIBJWT_HOMEPAGE_URL}
LANGUAGES C)

add_compile_options(-Wall -Werror -Wextra -Wunused)

# Must be set after the above
include(GNUInstallDirs)

Expand Down Expand Up @@ -167,8 +169,7 @@ set_target_properties(jwt PROPERTIES
SOVERSION ${LIBJWT_COMPATVERSION}
)

add_definitions(-D_GNU_SOURCE -O3 -Wall -Werror -Wextra)
add_definitions(-DKEYDIR=\"${CMAKE_SOURCE_DIR}/tests/keys\")
add_definitions(-D_GNU_SOURCE -DKEYDIR=\"${CMAKE_SOURCE_DIR}/tests/keys\")

# Install header
install(FILES include/jwt.h
Expand Down
1 change: 0 additions & 1 deletion tests/jwt_checker.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ START_TEST(claim_str_addgetdel)
{
const char exp[] = "{\"iss\":\"disk.swissdisk.com\"}";
jwt_checker_auto_t *checker = NULL;
char_auto *out = NULL;
jwt_value_t jval;
int ret;

Expand Down

0 comments on commit 3faf199

Please sign in to comment.