From def6a000ee9ad67fcfa00e710b7a4e6091fdc5da Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Thu, 3 Mar 2022 13:46:12 +0100 Subject: External libgit2: Disable warnings --- etc/defaults/CC/TARGETS.git2 | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 etc/defaults/CC/TARGETS.git2 (limited to 'etc/defaults') diff --git a/etc/defaults/CC/TARGETS.git2 b/etc/defaults/CC/TARGETS.git2 new file mode 100644 index 00000000..2efd5574 --- /dev/null +++ b/etc/defaults/CC/TARGETS.git2 @@ -0,0 +1,58 @@ +{ "defaults": + { "type": ["CC", "defaults"] + , "arguments_config": ["OS"] + , "CC": ["clang"] + , "CXX": ["clang++"] + , "CFLAGS": + { "type": "case" + , "expr": {"type": "var", "name": "OS"} + , "case": + { "windows": + [ "-D_SCL_SECURE_NO_WARNINGS" + , "-D_CRT_SECURE_NO_DEPRECATE" + , "-D_CRT_NONSTDC_NO_DEPRECATE" + , "/GF" + , "/MP" + , "/nologo" + ] + } + , "default": + { "type": "++" + , "$1": + [ ["-D_GNU_SOURCE", "-Wall", "-Wextra"] + , { "type": "case" + , "expr": {"type": "var", "name": "OS"} + , "case": + { "sunos": + [ "-D_POSIX_C_SOURCE=200112L" + , "-D__EXTENSIONS__" + , "-D_POSIX_PTHREAD_SEMANTICS" + ] + , "solaris": + [ "-D_POSIX_C_SOURCE=200112L" + , "-D__EXTENSIONS__" + , "-D_POSIX_PTHREAD_SEMANTICS" + ] + } + } + , [ "-Wdocumentation" + , "-Wno-documentation-deprecated-sync" + , "-Wno-missing-field-initializers" + , "-Wstrict-aliasing" + , "-Wstrict-prototypes" + , "-Wdeclaration-after-statement" + , "-Wshift-count-overflow" + , "-Wunused-const-variable" + , "-Wunused-function" + , "-Wint-conversion" + , "-Wformat" + , "-Wformat-security" + ] + ] + } + } + , "CXXFLAGS": [] + , "AR": ["ar"] + , "PATH": ["/bin", "/sbin", "/usr/bin", "/usr/sbin"] + } +} -- cgit v1.2.3