summaryrefslogtreecommitdiff
path: root/purple-history
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2022-12-11 22:56:34 -0600
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2022-12-11 22:56:34 -0600
commit67bbadace042845934bd214b313f0232b453d03b (patch)
treedb28f02b2a93682e5715f569348c8058fa3eae43 /purple-history
parent860eb6ee142b525b12be58eb770d5db4204800a3 (diff)
downloadpidgin-67bbadace042845934bd214b313f0232b453d03b.tar.gz
Bump C standard to C99 for libpurple files and fix warnings
Testing Done: Touched all source files and compiled; saw no new warnings. Reviewed at https://reviews.imfreedom.org/r/2122/
Diffstat (limited to 'purple-history')
-rw-r--r--purple-history/meson.build4
-rw-r--r--purple-history/purplehistorycore.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/purple-history/meson.build b/purple-history/meson.build
index 7c0e4c1001..7de66990d9 100644
--- a/purple-history/meson.build
+++ b/purple-history/meson.build
@@ -5,5 +5,5 @@ PURPLE_HISTORY_SOURCES = [
purple_history = executable('purple-history',
PURPLE_HISTORY_SOURCES,
dependencies : [libpurple_dep, glib],
- install : true)
-
+ install : true,
+ override_options : ['c_std=c99', 'warning_level=2'])
diff --git a/purple-history/purplehistorycore.c b/purple-history/purplehistorycore.c
index 94d7325332..14ec3c3e40 100644
--- a/purple-history/purplehistorycore.c
+++ b/purple-history/purplehistorycore.c
@@ -55,6 +55,7 @@ purple_history_query(const gchar *query, GError **error) {
return TRUE;
}
+G_GNUC_UNUSED
static gboolean
purple_history_remove(const gchar *query, GError **error) {
PurpleHistoryManager *manager = purple_history_manager_get_default();