We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ad7be5 commit 18bd64dCopy full SHA for 18bd64d
src/runtime/cgo/gcc_libinit.c
@@ -4,10 +4,12 @@
4
5
//go:build unix
6
7
-// When cross-compiling to linux/armv5, atomics are emulated and cause a
8
-// compiler warning. This results in a build failure since cgo uses
9
-// -Werror. See #65290.
+// When cross-compiling with clang to linux/armv5, atomics are emulated
+// and cause a compiler warning. This results in a build failure since
+// cgo uses -Werror. See #65290.
10
+#if defined(__clang__)
11
#pragma GCC diagnostic ignored "-Watomic-alignment"
12
+#endif
13
14
#include <pthread.h>
15
#include <errno.h>
0 commit comments