Skip to content

Commit ca67353

Browse files
committed
webrtc test
1 parent f7b1a12 commit ca67353

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

scripts/generate_webrtc_wrapper.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def generate_wrapper():
7373
extern "C" {
7474
7575
FFM_AudioProcessing FFM_CreateAudioProcessing() {
76-
// 使用最新的 BuiltinAudioProcessingBuilder 和 CreateEnvironment
7776
webrtc::scoped_refptr<webrtc::AudioProcessing> apm =
7877
webrtc::BuiltinAudioProcessingBuilder().Build(webrtc::CreateEnvironment());
7978
@@ -190,11 +189,18 @@ def generate_wrapper():
190189
"//api/audio:audio_frame_api",
191190
]
192191
193-
cflags = [ "-w" ]
194-
cflags_cc = [ "-w" ]
192+
# 直接移除触发该报错的 Clang 检查插件
193+
if (is_clang) {
194+
configs -= [ "//build/config/clang:find_bad_constructs" ]
195+
}
195196
197+
# 降低对代码风格的严格程度
196198
configs -= [ "//build/config/compiler:chromium_code" ]
197199
configs += [ "//build/config/compiler:no_chromium_code" ]
200+
201+
# 确保其他可能出现的 warning 不会被升级为 error
202+
cflags = [ "-Wno-error" ]
203+
cflags_cc = [ "-Wno-error" ]
198204
}
199205
""")
200206

0 commit comments

Comments
 (0)