disable -Wdeprecated-declarations in legacy code
this avoids downstream projects from needing to add this flag to their build. BUG=webm:1445 Change-Id: I03f3cc20496bc52245b6c3c013ae3c13936f4b4f
This commit is contained in:
parent
a98f4950f6
commit
84e82579f7
@ -47,7 +47,15 @@ struct Vp9CodecFeatures {
|
||||
int chroma_subsampling;
|
||||
};
|
||||
|
||||
// disable deprecation warnings for auto_ptr
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
typedef std::auto_ptr<mkvmuxer::PrimaryChromaticity> PrimaryChromaticityPtr;
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
bool CopyPrimaryChromaticity(const mkvparser::PrimaryChromaticity& parser_pc,
|
||||
PrimaryChromaticityPtr* muxer_pc);
|
||||
|
@ -24,6 +24,11 @@
|
||||
#include "mkvmuxer/mkvwriter.h"
|
||||
#include "mkvparser/mkvparser.h"
|
||||
|
||||
// disable deprecation warnings for auto_ptr
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
namespace mkvmuxer {
|
||||
|
||||
const float PrimaryChromaticity::kChromaticityMin = 0.0f;
|
||||
|
@ -29,6 +29,11 @@
|
||||
|
||||
#include "sample_muxer_metadata.h"
|
||||
|
||||
// disable deprecation warnings for auto_ptr
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
void Usage() {
|
||||
|
@ -22,6 +22,11 @@
|
||||
|
||||
#include "common/webmids.h"
|
||||
|
||||
// disable deprecation warnings for auto_ptr
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
namespace mkvparser {
|
||||
const float MasteringMetadata::kValueNotPresent = FLT_MAX;
|
||||
const long long Colour::kValueNotPresent = LLONG_MAX;
|
||||
|
@ -16,6 +16,11 @@
|
||||
#include "mkvparser/mkvparser.h"
|
||||
#include "mkvparser/mkvreader.h"
|
||||
|
||||
// disable deprecation warnings for auto_ptr
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
const wchar_t* utf8towcs(const char* str) {
|
||||
if (str == NULL)
|
||||
|
@ -20,6 +20,11 @@
|
||||
|
||||
using std::string;
|
||||
|
||||
// disable deprecation warnings for auto_ptr
|
||||
#if defined(__GNUC__) && __GNUC__ >= 5
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
namespace libwebm {
|
||||
namespace vttdemux {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user