Reenable -Wexit-time-destructors -and Wglobal-constructors in libwebrtc
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Aug 2018 18:00:45 +0000 (18:00 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Aug 2018 18:00:45 +0000 (18:00 +0000)
commit73b2a63ae6d495ed0f8396f6eba4c1d1e3345df4
treec1d3d2470ae4c8ea7d6e84e5c4cc04509cf3f476
parent62a04ff89f349c31e58c25bb097771672fbbdba5
Reenable -Wexit-time-destructors -and Wglobal-constructors in libwebrtc
https://bugs.webkit.org/show_bug.cgi?id=189036

Reviewed by Geoffrey Garen.

Renable these compilation warnings and introduce rtc::NeverDestroyed as helper.

* Configurations/Base.xcconfig:
* Source/webrtc/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.cc:
* Source/webrtc/modules/congestion_controller/bbr/bbr_network_controller.cc:
* Source/webrtc/modules/congestion_controller/goog_cc/goog_cc_network_control.cc:
* Source/webrtc/pc/peerconnection.cc:
* Source/webrtc/rtc_base/flags.h:
* Source/webrtc/rtc_base/logging.cc:
* Source/webrtc/rtc_base/never_destroyed.h: Added.
(rtc::NeverDestroyed::NeverDestroyed):
(rtc::NeverDestroyed::operator T&):
(rtc::NeverDestroyed::get):
(rtc::NeverDestroyed::operator const T& const):
(rtc::NeverDestroyed::get const):
(rtc::NeverDestroyed::storagePointer const):
(rtc::makeNeverDestroyed):
* Source/webrtc/rtc_base/virtualsocketserver.cc:
* Source/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodec.mm:
* Source/webrtc/system_wrappers/source/clock.cc:
* Source/webrtc/system_wrappers/source/runtime_enabled_features_default.cc:
* libwebrtc.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
Source/ThirdParty/libwebrtc/ChangeLog
Source/ThirdParty/libwebrtc/Configurations/Base.xcconfig
Source/ThirdParty/libwebrtc/Source/webrtc/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.cc
Source/ThirdParty/libwebrtc/Source/webrtc/modules/congestion_controller/bbr/bbr_network_controller.cc
Source/ThirdParty/libwebrtc/Source/webrtc/modules/congestion_controller/goog_cc/goog_cc_network_control.cc
Source/ThirdParty/libwebrtc/Source/webrtc/pc/peerconnection.cc
Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/flags.h
Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/logging.cc
Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/never_destroyed.h [new file with mode: 0644]
Source/ThirdParty/libwebrtc/Source/webrtc/rtc_base/virtualsocketserver.cc
Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoCodec.mm
Source/ThirdParty/libwebrtc/Source/webrtc/system_wrappers/source/clock.cc
Source/ThirdParty/libwebrtc/Source/webrtc/system_wrappers/source/runtime_enabled_features_default.cc
Source/ThirdParty/libwebrtc/libwebrtc.xcodeproj/project.pbxproj