Skip to content

Commit e4818a4

Browse files
committed
Build with -Wno-unused-parameter
1 parent 8d95cd8 commit e4818a4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cmake/PrivateSdlFunctions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function(sdl_add_warning_options TARGET)
310310
if(MSVC)
311311
target_compile_options(${TARGET} PRIVATE /W2)
312312
else()
313-
target_compile_options(${TARGET} PRIVATE -Wall -Wextra)
313+
target_compile_options(${TARGET} PRIVATE -Wall -Wextra -Wno-unused-parameter)
314314
endif()
315315
if(ARGS_WARNING_AS_ERROR)
316316
if(MSVC)

src/SDL_net.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,6 @@ static void SDLCALL EnumerateNetAddrTable(void *userdata, SDL_PropertiesID props
788788

789789
static void SDLCALL CleanupNetAddrTable(void *userdata, void *value)
790790
{
791-
(void) userdata;
792791
NET_UnrefAddress((NET_Address *) value);
793792
}
794793

0 commit comments

Comments
 (0)