Fix compilation warnings
authorMyhailo Danylenko <isbear@ukrpost.net>
Tue, 30 Mar 2010 22:20:41 +0300
changeset 14 61d94594e8fb
parent 13 dbb001e9f800
child 15 fbcad36ca352
Fix compilation warnings
CMakeLists.txt
env.c
--- a/CMakeLists.txt	Thu Mar 25 20:47:56 2010 +0200
+++ b/CMakeLists.txt	Tue Mar 30 22:20:41 2010 +0300
@@ -38,6 +38,7 @@
 					  ${MCABBER_LIBRARIES})
 include_directories(${env_SOURCE_DIR} 
                     ${env_BINARY_DIR})
+set_target_properties(env PROPERTIES COMPILE_FLAGS "-Wall")
 
 ## Packaging information
 set(CPACK_PACKAGE_NAME libmcabber-env)
--- a/env.c	Thu Mar 25 20:47:56 2010 +0200
+++ b/env.c	Tue Mar 30 22:20:41 2010 +0300
@@ -25,6 +25,7 @@
 #include <unistd.h>
 #include <errno.h>
 
+#include <mcabber/commands.h>
 #include <mcabber/utils.h>
 #include <mcabber/compl.h>
 #include <mcabber/logprint.h>