From 29b2a750258c7ba85204c121c6054aa2004b4818 Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Thu, 19 Jan 2023 12:25:19 -0800 Subject: Turn off the new GCC 13 warning for -Wself-move in tests since we intentionally test this behavior PiperOrigin-RevId: 503234578 Change-Id: Ic42c2e55e03843af7a36f99debb5ebcf7baec0fe --- absl/copts/GENERATED_AbseilCopts.cmake | 1 + absl/copts/GENERATED_copts.bzl | 1 + absl/copts/copts.py | 1 + 3 files changed, 3 insertions(+) (limited to 'absl/copts') diff --git a/absl/copts/GENERATED_AbseilCopts.cmake b/absl/copts/GENERATED_AbseilCopts.cmake index 04e7b444..430916f7 100644 --- a/absl/copts/GENERATED_AbseilCopts.cmake +++ b/absl/copts/GENERATED_AbseilCopts.cmake @@ -72,6 +72,7 @@ list(APPEND ABSL_GCC_TEST_FLAGS "-DNOMINMAX" "-Wno-deprecated-declarations" "-Wno-missing-declarations" + "-Wno-self-move" "-Wno-sign-compare" "-Wno-unused-function" "-Wno-unused-parameter" diff --git a/absl/copts/GENERATED_copts.bzl b/absl/copts/GENERATED_copts.bzl index 84f4bffc..011d8a98 100644 --- a/absl/copts/GENERATED_copts.bzl +++ b/absl/copts/GENERATED_copts.bzl @@ -73,6 +73,7 @@ ABSL_GCC_TEST_FLAGS = [ "-DNOMINMAX", "-Wno-deprecated-declarations", "-Wno-missing-declarations", + "-Wno-self-move", "-Wno-sign-compare", "-Wno-unused-function", "-Wno-unused-parameter", diff --git a/absl/copts/copts.py b/absl/copts/copts.py index 06eeb67b..e6e11949 100644 --- a/absl/copts/copts.py +++ b/absl/copts/copts.py @@ -33,6 +33,7 @@ ABSL_GCC_FLAGS = [ ABSL_GCC_TEST_ADDITIONAL_FLAGS = [ "-Wno-deprecated-declarations", "-Wno-missing-declarations", + "-Wno-self-move", "-Wno-sign-compare", "-Wno-unused-function", "-Wno-unused-parameter", -- cgit v1.2.3