From 37b5323817352262f4e6212abca231c1c5f5d6c8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 31 Mar 2021 21:58:04 +0300 Subject: Disable GCC -Wall and -Wno-extra warnings for curl --- curl/curl/buildfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/curl/curl/buildfile b/curl/curl/buildfile index 7b88ae7..3bff067 100644 --- a/curl/curl/buildfile +++ b/curl/curl/buildfile @@ -32,10 +32,12 @@ switch $c.class, $tsys { case 'gcc' { - # Disable the Clang targeting MSVC warnings. + # Disable warnings that pop up with -Wall -Wextra. Upstream doesn't seem + # to care about these and it is not easy to disable specific warnings in a + # way that works across compilers/version (some -Wno-* options are only + # recognized in newer versions). # - if ($c.id == 'clang' && $tsys == 'win32-msvc') - c.coptions += -Wno-deprecated-declarations + c.coptions += -Wno-all -Wno-extra -Wno-deprecated-declarations } case 'msvc' { -- cgit v1.1