From 9486ffae8179abb0c3622bc9b8b6d7975babd4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Mon, 8 Sep 2014 02:59:50 +0200 Subject: [PATCH] Added extra warnings, moved -std=c99 to CMAKE_C_FLAGS. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29dfe7e..dc87d65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,9 @@ add_library(tox SHARED src/tox-weechat-chats.c src/tox-weechat-friend-requests.c ) -add_definitions(-std=c99 -D_GNU_SOURCE) +add_definitions(-D_GNU_SOURCE) +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra -Werror-implicit-function-declaration -Wno-unused-parameter") + target_link_libraries(tox toxcore) # remove lib prefix (libtox.so -> tox.so)