--- a/CMakeLists.txt Thu Mar 25 20:46:44 2010 +0200
+++ b/CMakeLists.txt Tue Mar 30 22:14:29 2010 +0300
@@ -38,6 +38,7 @@
${MCABBER_LIBRARIES})
include_directories(${cmd_SOURCE_DIR}
${cmd_BINARY_DIR})
+set_target_properties(cmd PROPERTIES COMPILE_FLAGS "-Wall")
## Packaging information
set(CPACK_PACKAGE_NAME libmcabber-cmd)
--- a/cmd.c Thu Mar 25 20:46:44 2010 +0200
+++ b/cmd.c Tue Mar 30 22:14:29 2010 +0300
@@ -23,6 +23,7 @@
#include <glib.h>
#include <unistd.h>
#include <errno.h>
+#include <string.h>
#include <mcabber/commands.h>
#include <mcabber/logprint.h>
@@ -32,6 +33,7 @@
#include <mcabber/xmpp.h>
#include <mcabber/roster.h>
#include <mcabber/modules.h>
+#include <mcabber/hooks.h>
#include "config.h"
@@ -159,7 +161,6 @@
gsize len = 0;
gchar *bbuf = NULL;
gchar *subject = NULL;
- gboolean ret;
if (written - sent > HBB_BLOCKSIZE) {
gchar *c = utf8 + sent + HBB_BLOCKSIZE;