Skip to content

Commit 42c3af2

Browse files
Disable -Wdocumentation for libwebsocket. (#30341)
It triggers tens of thousands of those warnings. For the Xcode build of darwin-framework-tool, this just disables -Wdocumentation across the board, since I don't see a way to do it for particular files.
1 parent 1b5a58a commit 42c3af2

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

examples/common/websocket-server/BUILD.gn

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ import("//build_overrides/build.gni")
1616
import("//build_overrides/chip.gni")
1717

1818
config("websocket_server_config_disable_warnings") {
19-
# Unfortunately, some of the libwebsockets headers include -Wshadow failures.
20-
cflags = [ "-Wno-shadow" ]
19+
# Unfortunately, some of the libwebsockets headers include -Wshadow failures,
20+
# and have tons of -Wdocumentation issues.
21+
cflags = [
22+
"-Wno-shadow",
23+
"-Wno-documentation",
24+
]
2125
}
2226

2327
static_library("websocket-server") {

src/darwin/Framework/Matter.xcodeproj/project.pbxproj

+14
Original file line numberDiff line numberDiff line change
@@ -1901,6 +1901,13 @@
19011901
SDKROOT = macosx;
19021902
STRIP_INSTALLED_PRODUCT = NO;
19031903
USER_HEADER_SEARCH_PATHS = "";
1904+
WARNING_CFLAGS = (
1905+
"-Wformat",
1906+
"-Wformat-nonliteral",
1907+
"-Wformat-security",
1908+
"-Wconversion",
1909+
"-Wno-documentation",
1910+
);
19041911
};
19051912
name = Debug;
19061913
};
@@ -1970,6 +1977,13 @@
19701977
PROVISIONING_PROFILE_SPECIFIER = "";
19711978
SDKROOT = macosx;
19721979
USER_HEADER_SEARCH_PATHS = "";
1980+
WARNING_CFLAGS = (
1981+
"-Wformat",
1982+
"-Wformat-nonliteral",
1983+
"-Wformat-security",
1984+
"-Wconversion",
1985+
"-Wno-documentation",
1986+
);
19731987
};
19741988
name = Release;
19751989
};

0 commit comments

Comments
 (0)