Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dequis/purple-facebook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgeboski <jgeboski@gmail.com>2015-08-24 17:40:15 +0300
committerjgeboski <jgeboski@gmail.com>2015-08-24 17:40:15 +0300
commitc1a5e47dd235fc33c7a2a1f27b21a7e4847b2439 (patch)
treebd9067e900615572b3eb543c80e0189802805c67
parentc9cbfbdccb52d8fa5b9fc23a6fade5f105d09ee1 (diff)
configure: added option for extra compiler warnings
-rw-r--r--.travis.yml2
-rw-r--r--VERSION2
-rw-r--r--configure.ac24
-rw-r--r--include/purple-compat.h2
4 files changed, 27 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 101bd30..30a7f32 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,7 +18,7 @@ before_install:
libpurple-dev
script:
- - CFLAGS="-Wall" ./autogen.sh
+ - CFLAGS="-Werror" ./autogen.sh --enable-warnings
- scan-build -k
--use-cc=$(which "${CC}")
--status-bugs
diff --git a/VERSION b/VERSION
index c2a1368..d0d565a 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5727ffb502c7
+39b8f418563c
diff --git a/configure.ac b/configure.ac
index 5409527..2aa60e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,6 +44,30 @@ m4_define_default(
AS_IF([test -n "$$1"], [$4], [$5])]
)
+AC_ARG_ENABLE(
+ [warnings],
+ [AS_HELP_STRING(
+ [--enable-warnings],
+ [Enable additional compile-time (GCC) warnings]
+ )],
+ [WARNINGS="yes"],
+ [WARNINGS="no"]
+)
+
+AS_IF(
+ [test "x$WARNINGS" == "xyes"],
+ [CFLAGS="$CFLAGS -Wall -Wextra \
+ -Waggregate-return \
+ -Wdeclaration-after-statement \
+ -Wfloat-equal \
+ -Wformat \
+ -Winit-self \
+ -Wmissing-declarations \
+ -Wmissing-prototypes \
+ -Wno-unused-parameter \
+ -Wpointer-arith"]
+)
+
AC_ARG_WITH(
[plugindir],
[AS_HELP_STRING(
diff --git a/include/purple-compat.h b/include/purple-compat.h
index 8375a1a..4e1d439 100644
--- a/include/purple-compat.h
+++ b/include/purple-compat.h
@@ -120,7 +120,7 @@ struct _PurpleMessage
GPOINTER_TO_UINT(i)
#define purple_message_new_outgoing(n, t, f) \
- ((PurpleMessage *) &((PurpleMessage) {n, t, f}))
+ ((PurpleMessage *) &((PurpleMessage) {n, t, f, time(NULL)}))
#define purple_message_set_time(m, t) \
G_STMT_START { \