From: Vadim Zeitlin Date: Wed, 6 Feb 2013 00:42:11 +0000 (+0000) Subject: Fix harmless warning about NULL in wxStyledTextCtrl code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ff0d660405e85eb4b411edb0cafc6c6f7733ae55?ds=sidebyside Fix harmless warning about NULL in wxStyledTextCtrl code. Cast NULL to the type of third argument of SendMsg() explicitly to avoid a warning about it from Ubuntu g++ 4.6. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index f1cfe240df..c9b08e945c 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -4509,7 +4509,7 @@ bool wxStyledTextCtrl::GetUseAntiAliasing() { } void wxStyledTextCtrl::AnnotationClearLine(int line) { - SendMsg(SCI_ANNOTATIONSETTEXT, line, NULL); + SendMsg(SCI_ANNOTATIONSETTEXT, line, (sptr_t)NULL); } diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index eec517db9f..d9036a438b 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -647,7 +647,7 @@ bool wxStyledTextCtrl::GetUseAntiAliasing() { } void wxStyledTextCtrl::AnnotationClearLine(int line) { - SendMsg(SCI_ANNOTATIONSETTEXT, line, NULL); + SendMsg(SCI_ANNOTATIONSETTEXT, line, (sptr_t)NULL); }