Skip to content

Commit ff31da6

Browse files
committed
opal_check_attributes: fix __extension__ test
Per https://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html#index-_005f_005fextension_005f_005f, use __extension__ in a C statement that will actually verify if the compiler supports it or not. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 88e26c6 commit ff31da6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/opal_check_attributes.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dnl University of Stuttgart. All rights reserved.
1111
dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212
dnl All rights reserved.
1313
dnl Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
14-
dnl Copyright (c) 2010-2013 Cisco Systems, Inc. All rights reserved.
14+
dnl Copyright (c) 2010-2018 Cisco Systems, Inc. All rights reserved
1515
dnl Copyright (c) 2013 Mellanox Technologies, Inc.
1616
dnl All rights reserved.
1717
dnl Copyright (c) 2015 Research Organization for Information Science
@@ -569,7 +569,7 @@ AC_DEFUN([OPAL_CHECK_ATTRIBUTES], [
569569

570570
_OPAL_CHECK_SPECIFIC_ATTRIBUTE([extension],
571571
[
572-
#define FOO __extension__ ({size_t bar; bar = 3;})
572+
int i = __extension__ 3;
573573
],
574574
[],
575575
[])

0 commit comments

Comments
 (0)