From: Vadim Zeitlin Date: Sat, 17 Sep 2005 22:40:40 +0000 (+0000) Subject: turn off warning 3970 for SGI CC (see comment for explanation) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/15b17d22b02331e1e7acff9fa701df1b11e20428?ds=inline turn off warning 3970 for SGI CC (see comment for explanation) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure.in b/configure.in index a3c12dff26..a74bac5c66 100644 --- a/configure.in +++ b/configure.in @@ -1926,6 +1926,20 @@ if test "x$SUNCC" = xyes; then CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN" fi +dnl SGI mipsPro compiler gives this warning for "conversion from pointer to +dnl same-sized integral type" even when there is an explicit cast and as there +dnl is no way to turn it off and there are hundreds of these warnings in wx +dnl sources, just turn it off for now +dnl +dnl a better long term solution would be to use #pragma set/reset woff in +dnl wxPtrToUInt() and use it instead of casts elsewhere +if test "x$SGICC" = "xyes"; then + CFLAGS="$CFLAGS -woff 3970" +fi +if test "x$SGICXX" = "xyes"; then + CXXFLAGS="$CXXFLAGS -woff 3970" +fi + dnl check for std::string or std::wstring if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then AC_LANG_PUSH(C++)