aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-12-14 11:51:46 +0000
committerGitHub <noreply@github.com>2022-12-14 11:51:46 +0000
commit3d6dbb6fc5d1d14bf36a879b6f4a00ae91090a63 (patch)
tree021be863cc8b6bae85c96780d094ae0de76795cc
parent62d1620c91053438399064fa4eddb15d09cbabf4 (diff)
parent2384a034568971d533aea91bca6a11d7f5d19ff9 (diff)
downloadgcc-3d6dbb6fc5d1d14bf36a879b6f4a00ae91090a63.zip
gcc-3d6dbb6fc5d1d14bf36a879b6f4a00ae91090a63.tar.gz
gcc-3d6dbb6fc5d1d14bf36a879b6f4a00ae91090a63.tar.bz2
Merge #1701
1701: Standardize warning flags r=tschwinge a=tschwinge Bring in #1670, revert #1623 and parts of #1585. Co-authored-by: Thomas Schwinge <thomas@codesourcery.com>
-rw-r--r--.github/bors_log_expected_warnings16
-rw-r--r--.github/workflows/bootstrap.yml3
-rw-r--r--.github/workflows/ccpp.yml3
-rw-r--r--gcc/rust/Make-lang.in3
4 files changed, 19 insertions, 6 deletions
diff --git a/.github/bors_log_expected_warnings b/.github/bors_log_expected_warnings
index 381e1ce..cf03bca 100644
--- a/.github/bors_log_expected_warnings
+++ b/.github/bors_log_expected_warnings
@@ -12,6 +12,9 @@
../../../libffi/src/java_raw_api.c:369:3: warning: ‘ffi_prep_java_raw_closure_loc’ is deprecated [-Wdeprecated-declarations]
../../../libffi/src/x86/ffi64.c:783:1: warning: label ‘out’ defined but not used [-Wunused-label]
../../../libffi/src/x86/ffiw64.c:250:1: warning: label ‘out’ defined but not used [-Wunused-label]
+../../c++tools/server.cc:490:11: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
+../../c++tools/server.cc:620:10: warning: ignoring return value of ‘int pipe(int*)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/../libgcc/libgcov-util.c:455:9: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
../../gcc/analyzer/call-summary.cc:112:20: warning: too many arguments for format [-Wformat-extra-args]
../../gcc/analyzer/call-summary.cc:112:28: warning: unknown conversion type character ‘E’ in format [-Wformat=]
../../gcc/analyzer/call-summary.cc:114:20: warning: too many arguments for format [-Wformat-extra-args]
@@ -90,10 +93,23 @@
../../gcc/config/i386/i386.cc:2568:8: warning: unknown conversion type character ‘}’ in format [-Wformat=]
../../gcc/diagnostic.cc:2206:52: warning: format not a string literal and no format arguments [-Wformat-security]
../../gcc/fold-const.cc:313:42: warning: format not a string literal and no format arguments [-Wformat-security]
+../../gcc/gcc.cc:10502:12: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/gcc.cc:7735:9: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/gcc.cc:7738:13: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/gcc.cc:7739:13: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/gcc.cc:7741:9: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/genhooks.cc:112:17: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/genhooks.cc:121:14: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/genhooks.cc:174:14: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/genhooks.cc:180:14: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
../../gcc/gimple-range-gori.cc:318:22: warning: format not a string literal and no format arguments [-Wformat-security]
../../gcc/ipa-devirt.cc:965:47: warning: format not a string literal and no format arguments [-Wformat-security]
+../../gcc/lto-wrapper.cc:1147:8: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
../../gcc/lto-wrapper.cc:1365:52: warning: format not a string literal and no format arguments [-Wformat-security]
../../gcc/lto-wrapper.cc:1957:44: warning: format not a string literal and no format arguments [-Wformat-security]
+../../gcc/lto/lto-common.cc:2076:10: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/lto/lto-common.cc:2078:9: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
+../../gcc/lto/lto-common.cc:2098:10: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
../../gcc/omp-low.cc:10633:19: warning: ‘T’ conversion used within a quoted sequence [-Wformat=]
../../gcc/omp-low.cc:1548:23: warning: ‘T’ conversion used within a quoted sequence [-Wformat=]
../../gcc/omp-low.cc:1553:23: warning: ‘T’ conversion used within a quoted sequence [-Wformat=]
diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml
index 5882713..8ac4f05 100644
--- a/.github/workflows/bootstrap.yml
+++ b/.github/workflows/bootstrap.yml
@@ -4,9 +4,6 @@ on:
push:
branches: [ master ]
-env:
- CXXFLAGS: "-Wno-unused-parameter -Werror=overloaded-virtual"
-
jobs:
build:
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml
index 8c9f027..c7d27ce 100644
--- a/.github/workflows/ccpp.yml
+++ b/.github/workflows/ccpp.yml
@@ -8,9 +8,6 @@ on:
pull_request:
branches: [ master ]
-env:
- CXXFLAGS: "-Wno-unused-parameter -Werror=overloaded-virtual"
-
jobs:
build-and-check-ubuntu-64bit:
diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in
index 21d7d4e..36f0688 100644
--- a/gcc/rust/Make-lang.in
+++ b/gcc/rust/Make-lang.in
@@ -24,6 +24,9 @@
# Use strict warnings for this front end.
rust-warn = $(STRICT_WARN)
+# ..., with the exception of '-Wunused-parameter'; waiting for
+# <https://github.com/Rust-GCC/gccrs/issues/1626> "bootstrap build failure".
+rust-warn += -Wno-unused-parameter
# Installation name. Useful for cross compilers and used during install.
GCCRS_INSTALL_NAME := $(shell echo gccrs|sed '$(program_transform_name)')