aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-01-03 15:43:30 -0800
committerGuy Harris <guy@alum.mit.edu>2019-01-04 02:28:19 +0000
commitda4aea6b55fe7cb7e718adf74aaca38f11ed88e0 (patch)
treef4248b816a77e6e9b0ea8b28016d099a00c564e8
parent1cc4c15ef08ea33d06d41e7c119a8ceffdb2ce08 (diff)
Remove a no-longer-needed DIAG_OFF/DIAG_ON pair.
If you're not casting anything, you're not casting away qualifiers, so there's no need to disable warnings about casting away constness. Change-Id: Ib6bb75a8683ce129078a09df385159c13d2cf306 Reviewed-on: https://code.wireshark.org/review/31355 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--epan/prefs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index 0f67b3ffd6..dc9cdf6709 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -301,9 +301,7 @@ prefs_init(void)
static void
free_string_like_preference(pref_t *pref)
{
-DIAG_OFF(cast-qual)
g_free(*pref->varp.string);
-DIAG_ON(cast-qual)
*pref->varp.string = NULL;
g_free(pref->default_val.string);
pref->default_val.string = NULL;