Skip to content

Commit c7e7b41

Browse files
Suppress CI warnings from flatc/third-party libs
Co-authored-by: D3C0Y <decoder-dev@users.noreply.github.com>
1 parent 12e06cd commit c7e7b41

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

  • submodules
    • AnimationCompression
    • TelegramCore/FlatSerialization
  • third-party

‎submodules/AnimationCompression/BUILD‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ objc_library(
7070
"DctHuffman/Sources/**/*.mm",
7171
"DctHuffman/Sources/**/*.h",
7272
], allow_empty=True),
73-
copts = [],
73+
# CI emits clang -Wunused-but-set-variable for some local intermediates in
74+
# upstream code; suppress here so CI logs stay clean.
75+
copts = [
76+
"-Wno-unused-but-set-variable",
77+
],
7478
hdrs = glob([
7579
"DctHuffman/PublicHeaders/**/*.h",
7680
]),

‎submodules/TelegramCore/FlatSerialization/BUILD‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ genrule(
2626
rm -rf "$$BUILD_DIR"
2727
mkdir -p "$$BUILD_DIR"
2828
29-
"$$FLATC" --require-explicit-ids --swift -o "$$BUILD_DIR" {flatc_input}
29+
"$$FLATC" --no-warnings --require-explicit-ids --swift -o "$$BUILD_DIR" {flatc_input}
3030
""".format(
3131
flatc_input=flatc_input
3232
) + "\n" + "\n".join([

‎third-party/ZipArchive/BUILD‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ objc_library(
2020
"-DHAVE_PKCRYPT",
2121
"-DHAVE_STDINT_H",
2222
"-DHAVE_WZAES",
23+
# CI emits clang -Wunused-but-set-variable for locals in upstream code;
24+
# suppress to keep logs clean.
25+
"-Wno-unused-but-set-variable",
2326
],
2427
sdk_frameworks = [
2528
"Foundation",

‎third-party/yasm/BUILD‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ set -x
4242
pushd "$$BUILD_DIR/yasm-1.3.0"
4343
mkdir build
4444
cd build
45-
"$$CMAKE_BIN" .. -DYASM_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DPYTHON_EXECUTABLE="$$(which python3)"
45+
# CI warns about some upstream C constructs; silence them locally.
46+
"$$CMAKE_BIN" .. -DYASM_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DPYTHON_EXECUTABLE="$$(which python3)" \
47+
-DCMAKE_C_FLAGS="-Wno-deprecated-non-prototype -Wno-switch"
4648
make -j $$core_count
4749
popd
4850

0 commit comments

Comments
 (0)