Skip to content

Commit 9d24f55

Browse files
committed
Downgrade -Wclass-memaccess to a warning.
Bug 200574943
1 parent 324243f commit 9d24f55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/build/common_warnings.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ ifeq ($(OS),$(filter $(OS),Linux Darwin))
8888
# becoming part of the type system; we don't care.
8989
CUDACC_FLAGS += -Xcompiler "-Wno-noexcept-type"
9090
endif
91+
ifeq ($(shell if test $(GCC_VERSION) -ge 80; then echo true; fi),true)
92+
# GCC 8.x has a new warning that tries to diagnose technical misuses of
93+
# memcpy and memmove. We need to resolve it better than this, but for the
94+
# time being, we'll downgrade it from an error to a warning.
95+
CUDACC_FLAGS += -Xcompiler "-Wno-error=class-memaccess"
96+
endif
9197
else
9298
$(error CCBIN is not defined.)
9399
endif

0 commit comments

Comments
 (0)