File tree Expand file tree Collapse file tree
TelegramCore/FlatSerialization Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ]),
Original file line number Diff line number Diff 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 ([
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments