From c276e18282951d1550d3d56fe186d47e6a6d4f2d Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 4 Oct 2022 14:21:58 +0200 Subject: [PATCH] properly setting the C version --- CMakeLists.txt | 2 ++ src/main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc7cbbc..bdcb15c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,3 +41,5 @@ target_link_libraries(ModManager ${LIBXML_LIBRARIES}) target_link_libraries(ModManager ${AUDIT_LIBRARIES}) install(TARGETS ModManager DESTINATION bin) + +set_property(TARGET ModManager PROPERTY C_STANDARD 23) diff --git a/src/main.c b/src/main.c index dafc485..e77a4bc 100644 --- a/src/main.c +++ b/src/main.c @@ -90,7 +90,7 @@ int validateAppId(const char * appIdStr) { return (int)appid; } -int listGames(int argc, char ** argv) { +int listGames(int argc, char **) { if(argc != 2) return usage(); GList * gamesIds = g_hash_table_get_keys(gamePaths); GList * gamesIdsFirstPointer = gamesIds;