Skip to content

Commit d8d561a

Browse files
authored
[libc++][NFC] Remove _LIBCPP_DISABLE_EXTENSION_WARNINGS (#133693)
We only use `_LIBCPP_DISABLE_EXTENSION_WARNINGS` in a single place while we use extensions all over the place. The warnings are already disabled, since libc++'s headers are system headers, so this shouldn't be in any way observable by users.
1 parent 2a90631 commit d8d561a

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

libcxx/.clang-format

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ AttributeMacros: [
3030
'_LIBCPP_DEPRECATED_IN_CXX20',
3131
'_LIBCPP_DEPRECATED_IN_CXX23',
3232
'_LIBCPP_DEPRECATED',
33-
'_LIBCPP_DISABLE_EXTENSION_WARNING',
3433
'_LIBCPP_EXCLUDE_FROM_EXPLICIT_INSTANTIATION',
3534
'_LIBCPP_EXPORTED_FROM_ABI',
3635
'_LIBCPP_EXTERN_TEMPLATE_TYPE_VIS',

libcxx/include/__atomic/support/c11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct __cxx_atomic_base_impl {
3535
}
3636
#endif // _LIBCPP_CXX03_LANG
3737
_LIBCPP_CONSTEXPR explicit __cxx_atomic_base_impl(_Tp __value) _NOEXCEPT : __a_value(__value) {}
38-
_LIBCPP_DISABLE_EXTENSION_WARNING _Atomic(_Tp) __a_value;
38+
_Atomic(_Tp) __a_value;
3939
};
4040

4141
#define __cxx_atomic_is_lock_free(__s) __c11_atomic_is_lock_free(__s)

libcxx/include/__config

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,6 @@ typedef __char32_t char32_t;
352352

353353
# define _LIBCPP_ALWAYS_INLINE __attribute__((__always_inline__))
354354

355-
# define _LIBCPP_DISABLE_EXTENSION_WARNING __extension__
356-
357355
# if defined(_LIBCPP_OBJECT_FORMAT_COFF)
358356

359357
# ifdef _DLL

0 commit comments

Comments
 (0)