diff --git a/CMakeLists.txt b/CMakeLists.txt
index fcf40d4b02f0f689b3e86aa0412d6c5d31e910ff..d0a5c2a7872ac77f07ed68618e7f3d0447d916e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -180,7 +180,7 @@ if(NOT MSVC)
 		-fsized-deallocation \
 		-fdiagnostics-color=always \
 		-Wunreachable-code \
-		-std=c++17"
+		-Wno-attributes"
 		)
 	if (NOT CMAKE_COMPILER_IS_GNUCXX)
 		# -Wshadow is buggy and broken in GCC, so do not enable it.