Ignore build warning -Werror=redundant-move

gcc-13 complains with:
error: redundant move in return statement [-Werror=redundant-move]

We cannot fix the code, because both old versions of gcc and the windows
toolchain fails to build.

Change-Id: Iab62336fa37db8fab0dc8acabad0fabfabada0f9
Reviewed-on: https://gn-review.googlesource.com/c/gn/+/16140
Reviewed-by: Takuto Ikuta <tikuta@google.com>
Commit-Queue: Takuto Ikuta <tikuta@google.com>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
diff --git a/build/gen.py b/build/gen.py
index adb622a..232e536 100755
--- a/build/gen.py
+++ b/build/gen.py
@@ -472,6 +472,8 @@
     # flags not supported by gcc/g++.
     if cxx == 'clang++':
       cflags.extend(['-Wrange-loop-analysis', '-Wextra-semi-stmt'])
+    else:
+      cflags.append('-Wno-redundant-move')
 
     if platform.is_linux() or platform.is_mingw() or platform.is_msys():
       ldflags.append('-Wl,--as-needed')