Enable -Wexit-time-destructors and -Wglobal-constructors.

This CL enables -Wexit-time-destructors and -Wglobal-constructors on
rtc_static_library and rtc_source_set build targets.

It also adds the possibility to suppress these warnings because
they trigger in a few places.

The long term goal is to avoid regressions on this and remove all the
suppressions.

Bug: webrtc:9693
Change-Id: I4c1ecc137ef9e87ec5e66981ce95d96fb082727c
Reviewed-on: https://webrtc-review.googlesource.com/98380
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24604}
This commit is contained in:
Mirko Bonadei
2018-09-06 13:45:44 +02:00
committed by Commit Bot
parent 47c48b8032
commit 96ede16a4e
16 changed files with 79 additions and 1 deletions

View File

@ -1156,6 +1156,10 @@ rtc_source_set("neteq_test_tools") {
rtc_source_set("neteq_tools") {
visibility += webrtc_default_visibility
configs += [
"../..:no_exit_time_destructors",
"../..:no_global_constructors",
]
sources = [
"neteq/tools/fake_decode_from_file.cc",
"neteq/tools/fake_decode_from_file.h",