From b1c9c5146c017f9286ed01b562a043991e13be15 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Thu, 15 Sep 2022 10:27:57 +0200 Subject: libgit2: Precisely replicate original flags --- etc/defaults/CC/TARGETS.git2 | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'etc/defaults') diff --git a/etc/defaults/CC/TARGETS.git2 b/etc/defaults/CC/TARGETS.git2 index 4326ce62..c0ad8ba6 100644 --- a/etc/defaults/CC/TARGETS.git2 +++ b/etc/defaults/CC/TARGETS.git2 @@ -32,7 +32,8 @@ , "default": { "type": "++" , "$1": - [ { "type": "case" + [ ["-std=gnu90", "-D_GNU_SOURCE", "-Wall", "-Wextra"] + , { "type": "case" , "expr": {"type": "var", "name": "OS"} , "case": { "sunos": @@ -47,10 +48,11 @@ ] } } - , [ "-D_GNU_SOURCE" - , "-Wall" - , "-Wextra" - , "-Wno-documentation-deprecated-sync" + , { "type": "case" + , "expr": {"type": "var", "name": "COMPILER_FAMILY"} + , "case": {"clang": ["-Wdocumentation"]} + } + , [ "-Wno-documentation-deprecated-sync" , "-Wno-missing-field-initializers" , "-Wstrict-aliasing" , "-Wstrict-prototypes" @@ -61,11 +63,8 @@ , "-Wint-conversion" , "-Wformat" , "-Wformat-security" + , "-Wmissing-declarations" ] - , { "type": "case" - , "expr": {"type": "var", "name": "COMPILER_FAMILY"} - , "case": {"clang": ["-Wdocumentation"]} - } ] } } -- cgit v1.2.3