From 0f743e2408cfd02611e39f60b0c8df4d922f5346 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 12 Oct 2023 07:35:49 -0400 Subject: [PATCH] Allow warnings in the build Turning all warnings into errors is too strict for downstream packaging. --- gn.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gn.spec b/gn.spec index 2515bb0..403a5a6 100644 --- a/gn.spec +++ b/gn.spec @@ -116,10 +116,13 @@ cp -vp misc/vim/README.md README-vim.md %build AR='gcc-ar'; export AR %set_build_flags +# Treating warnings as errors is too strict for downstream builds. +# # Both --use-icf and --use-lto add compiler flags that only work with clang++, # not with g++. We do get LTO on Fedora anyway, since we respect the # distribution’s build flags. %{python3} build/gen.py \ + --allow-warnings \ --no-last-commit-position \ --no-strip \ --no-static-libstdc++