aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codecs.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-09-26 16:28:02 +0100
committerJoão Valverde <j@v6e.pt>2017-09-26 17:28:10 +0000
commit221a2bcbd0bd9fc04eacbe223f9118cabecccac1 (patch)
treea1ac7c9901d4c2f3ed2e9293e48e5e0003a087f3 /codecs/codecs.c
parentcd6ca0da41ce2af151670486e724d47870705d44 (diff)
Move some DIAG_OFFs to make code less ugly
Change-Id: I0f343ab69a6592a466e12e5d258f0878b9c32c25 Reviewed-on: https://code.wireshark.org/review/23752 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'codecs/codecs.c')
-rw-r--r--codecs/codecs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/codecs/codecs.c b/codecs/codecs.c
index 45716931ef..4e7eb60edd 100644
--- a/codecs/codecs.c
+++ b/codecs/codecs.c
@@ -59,6 +59,7 @@ static GSList *codec_plugins = NULL;
/*
* Callback for each plugin found.
*/
+DIAG_OFF(pedantic)
static gboolean
check_for_codec_plugin(GModule *handle)
{
@@ -87,6 +88,7 @@ check_for_codec_plugin(GModule *handle)
codec_plugins = g_slist_prepend(codec_plugins, plugin);
return TRUE;
}
+DIAG_ON(pedantic)
void
codec_register_plugin_types(void)