This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60304] Including <atomic> disables -Wconversion-null
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Oct 2014 09:38:18 +0000
- Subject: [Bug c++/60304] Including <atomic> disables -Wconversion-null
- Auto-submitted: auto-generated
- References: <bug-60304-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60304
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Ah, that makes a lot of sense! If testing goes well, I mean to commit the
below, which in any case shouldn't hurt:
Index: include/bits/atomic_base.h
===================================================================
--- include/bits/atomic_base.h (revision 216624)
+++ include/bits/atomic_base.h (working copy)
@@ -33,7 +33,6 @@
#pragma GCC system_header
#include <bits/c++config.h>
-#include <stdbool.h>
#include <stdint.h>
#include <bits/atomic_lockfree_defines.h>
Index: include/std/atomic
===================================================================
--- include/std/atomic (revision 216624)
+++ include/std/atomic (working copy)
@@ -36,7 +36,7 @@
#if __cplusplus < 201103L
# include <bits/c++0x_warning.h>
-#endif
+#else
#include <bits/atomic_base.h>
@@ -1129,4 +1129,6 @@
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace
-#endif
+#endif // C++11
+
+#endif // _GLIBCXX_ATOMIC