From 6aaad83d34c1870489890c1aab7ce22fecea47c8 Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Mon, 16 Jan 2023 00:00:25 -0700 Subject: [PATCH] Remove unsafeFlags use and disable fyaml warnings in header --- Package.swift | 3 +-- Sources/Cfyaml/config.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index bfde06d42..e5537a52a 100644 --- a/Package.swift +++ b/Package.swift @@ -70,8 +70,7 @@ let package = Package( .headerSearchPath("src/lib"), .headerSearchPath("src/valgrind"), .headerSearchPath("src/xxhash"), - .define("HAVE_CONFIG_H"), - .unsafeFlags(["-w"]) + .define("HAVE_CONFIG_H") ] ), .target( diff --git a/Sources/Cfyaml/config.h b/Sources/Cfyaml/config.h index 2e683640f..e9c4c6601 100644 --- a/Sources/Cfyaml/config.h +++ b/Sources/Cfyaml/config.h @@ -239,3 +239,5 @@ /* Define to `int' if doesn't define. */ /* #undef uid_t */ + +#pragma clang diagnostic ignored "-Wconversion"