From: John Darrington Date: Sun, 3 Oct 2010 10:45:06 +0000 (+0200) Subject: Remove erroneous CONST_CAST X-Git-Tag: v0.7.6~113 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12db30484865673b5e171f24170fcd51be26fef;p=pspp-builds.git Remove erroneous CONST_CAST Commit 97f9b8ad137e333af9b3c767556d28dfda93a461 attempted to use CONST_CAST to avoid a compiler warning about constness. However it applies at the wrong level of deference. This change undoes that particular problem and reverts to the original cast. --- diff --git a/src/data/dictionary.c b/src/data/dictionary.c index 5f86bbf5..9222f7ec 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -330,7 +330,7 @@ void dict_get_vars (const struct dictionary *d, const struct variable ***vars, size_t *cnt, enum dict_class exclude) { - dict_get_vars_mutable (d, CONST_CAST (struct variable ***, vars), cnt, exclude); + dict_get_vars_mutable (d, (struct variable ***) vars, cnt, exclude); } /* Sets *VARS to an array of pointers to variables in D and *CNT