From fa24fff3dc3b47899202faa6801e35f48bf9a0fd Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Mon, 2 Jul 2012 19:37:30 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20the=20warning=20with=20GCC=204.7.1:=20c?= =?UTF-8?q?ast=20from=20type=20=E2=80=98const=20void*=E2=80=99=20to=20type?= =?UTF-8?q?=20=E2=80=98const=20char**=E2=80=99=20casts=20away=20qualifiers?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/checkmemoryleak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 4ecb6a1e4..9fbf48488 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -94,7 +94,7 @@ static const char * const call_func_white_list[] = { static int call_func_white_list_compare(const void *a, const void *b) { - return strcmp((const char *)a, *(const char **)b); + return strcmp((const char *)a, *(const char * const *)b); } //---------------------------------------------------------------------------