From 423b631dff41d45f3eca980744aed0cd8abe1a69 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 14 Mar 2016 01:03:21 +0100 Subject: [PATCH] Use 0 instead of NULL for a non-pointer SymEnumSymbols() argument The base DLL address passed to this function is not a pointer, so don't use NULL here to avoid warnings from gcc. --- src/msw/stackwalk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/stackwalk.cpp b/src/msw/stackwalk.cpp index 4b59c4a381..c6c9f13bf5 100644 --- a/src/msw/stackwalk.cpp +++ b/src/msw/stackwalk.cpp @@ -170,7 +170,7 @@ void wxStackFrame::OnGetParam() if ( !wxDbgHelpDLL::CallSymEnumSymbols ( ::GetCurrentProcess(), - NULL, // DLL base: use current context + 0, // DLL base: use current context EnumSymbolsProc, // callback this // data to pass to it ) )