From da4aea6b55fe7cb7e718adf74aaca38f11ed88e0 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 3 Jan 2019 15:43:30 -0800 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- epan/prefs.c | 2 -- 1 file changed, 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; -- cgit v1.2.3