opal: fix pragma for GCC 6 and later
GCC 6 and later should ignore -Wpedantic instead of -pedantic
Этот коммит содержится в:
родитель
20fade1345
Коммит
e5d6b97db4
@ -12,6 +12,8 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
* Copyright (c) 2016 Research Organization for Information Science
|
||||||
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -52,7 +54,7 @@ typedef uint128_t opal_uint128_t;
|
|||||||
/* Clang won't quietly accept "-pedantic", but GCC versions older than ~4.8
|
/* Clang won't quietly accept "-pedantic", but GCC versions older than ~4.8
|
||||||
* won't quietly accept "-Wpedanic". The whole "#pragma GCC diagnostic ..."
|
* won't quietly accept "-Wpedanic". The whole "#pragma GCC diagnostic ..."
|
||||||
* facility only was added to GCC as of version 4.6. */
|
* facility only was added to GCC as of version 4.6. */
|
||||||
#if defined(__clang__)
|
#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 6)
|
||||||
#pragma GCC diagnostic ignored "-Wpedantic"
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
#else
|
#else
|
||||||
#pragma GCC diagnostic ignored "-pedantic"
|
#pragma GCC diagnostic ignored "-pedantic"
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user