- Starting with gcc-4.4, the compiler does not recognize faulty
compiler warnings starting with -Wno- to recognize (if there are no other warnings. Try it with Your favorite warning, such as -Wno-britney will not fail, while it will be recognized as faulty, if You also pass on with -Wno-britney -Wspears.... This commit was SVN r18070.
Этот коммит содержится в:
родитель
a00ca20446
Коммит
e1e13631cc
@ -6,7 +6,7 @@ dnl Corporation. All rights reserved.
|
||||
dnl Copyright (c) 2004-2006 The University of Tennessee and The University
|
||||
dnl of Tennessee Research Foundation. All rights
|
||||
dnl reserved.
|
||||
dnl Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
|
||||
dnl Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
|
||||
dnl University of Stuttgart. All rights reserved.
|
||||
dnl Copyright (c) 2004-2006 The Regents of the University of California.
|
||||
dnl All rights reserved.
|
||||
@ -121,7 +121,14 @@ AC_DEFUN([OMPI_SETUP_CC],[
|
||||
|
||||
# see if -Wno-long-double works...
|
||||
CFLAGS_orig="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Wno-long-double"
|
||||
# CFLAGS="$CFLAGS -Wno-long-double"
|
||||
# Starting with GCC-4.4, the compiler complains about not
|
||||
# knowing -Wno-long-double, only if -Wstrict-prototypes is set, too.
|
||||
#
|
||||
# Actually, this is not real fix, as GCC will pass on any -Wno- flag,
|
||||
# have fun with the warning: -Wno-britney
|
||||
CFLAGS="$CFLAGS -Wno-long-double -Wstrict-prototypes"
|
||||
|
||||
AC_CACHE_CHECK([if $CC supports -Wno-long-double],
|
||||
[ompi_cv_cc_wno_long_double],
|
||||
[AC_TRY_COMPILE([], [],
|
||||
|
@ -6,7 +6,7 @@ dnl Corporation. All rights reserved.
|
||||
dnl Copyright (c) 2004-2006 The University of Tennessee and The University
|
||||
dnl of Tennessee Research Foundation. All rights
|
||||
dnl reserved.
|
||||
dnl Copyright (c) 2004-2006 High Performance Computing Center Stuttgart,
|
||||
dnl Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
|
||||
dnl University of Stuttgart. All rights reserved.
|
||||
dnl Copyright (c) 2004-2006 The Regents of the University of California.
|
||||
dnl All rights reserved.
|
||||
@ -58,7 +58,7 @@ AC_DEFUN([OMPI_SETUP_CXX],[
|
||||
# see if -Wno-long-double works...
|
||||
AC_LANG_PUSH(C++)
|
||||
CXXFLAGS_orig="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS -Wno-long-double"
|
||||
CXXFLAGS="$CXXFLAGS -Wno-long-double -fstrict-prototype"
|
||||
AC_CACHE_CHECK([if $CXX supports -Wno-long-double],
|
||||
[ompi_cv_cxx_wno_long_double],
|
||||
[AC_TRY_COMPILE([], [],
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user