Browse Source

Reduce warning spam by un-marking va_list functions as deprecated,

and ensuring all callers of such are marked deprecated
Michael Hansen 9 years ago
parent
commit
132f5cfd15
  1. 1
      Sources/Plasma/CoreLib/hsStream.h
  2. 11
      Sources/Plasma/NucleusLib/inc/plLoggable.h
  3. 1
      Sources/Plasma/PubUtilLib/plSDL/plSDL.h

1
Sources/Plasma/CoreLib/hsStream.h

@ -122,7 +122,6 @@ public:
uint32_t WriteString(const plString & string) { return Write(string.GetSize(), string.c_str()); }
hsDeprecated("hsStream::WriteFmt is deprecated -- use plFormat instead")
uint32_t WriteFmt(const char * fmt, ...);
hsDeprecated("hsStream::WriteFmtV is deprecated -- use plFormat instead")
uint32_t WriteFmtV(const char * fmt, va_list av);
uint32_t WriteSafeStringLong(const plString &string); // uses 4 bytes for length

11
Sources/Plasma/NucleusLib/inc/plLoggable.h

@ -164,12 +164,6 @@ public:
// DEPRECATED Log methods
/////////////////////////////////////////////////////////////////////////
hsDeprecated("plLoggable::Log is deprecated -- use plFormat instead")
virtual bool Log( const char * str ) const
{
return Log(plString::FromUtf8(str));
}
hsDeprecated("plLoggable::LogF is deprecated -- use plFormat instead")
virtual bool LogF( const char * fmt, ... ) const
{
@ -181,31 +175,26 @@ public:
return ret;
}
hsDeprecated("plLoggable::LogV is deprecated -- use plFormat instead")
virtual bool LogV( const char * fmt, va_list args ) const
{
return Log(plString::IFormat(fmt, args));
}
hsDeprecated("plLoggable::ErrorMsgV is deprecated -- use plFormat instead")
virtual bool ErrorMsgV(const char* fmt, va_list args) const
{
return ErrorMsg(plString::IFormat(fmt, args));
}
hsDeprecated("plLoggable::DebugMsgV is deprecated -- use plFormat instead")
virtual bool DebugMsgV(const char* fmt, va_list args) const
{
return DebugMsg(plString::IFormat(fmt, args));
}
hsDeprecated("plLoggable::WarningMsgV is deprecated -- use plFormat instead")
virtual bool WarningMsgV(const char* fmt, va_list args) const
{
return WarningMsg(plString::IFormat(fmt, args));
}
hsDeprecated("plLoggable::AppMsgV is deprecated -- use plFormat instead")
virtual bool AppMsgV(const char* fmt, va_list args) const
{
return AppMsg(plString::IFormat(fmt, args));

1
Sources/Plasma/PubUtilLib/plSDL/plSDL.h

@ -520,7 +520,6 @@ private:
hsDeprecated("plSDLParser::DebugMsg with format is deprecated -- use plFormat instead")
void DebugMsg(const char* fmt, ...) const;
hsDeprecated("plSDLParser::DebugMsgV is deprecated -- use plFormat instead")
void DebugMsgV(const char* fmt, va_list args) const;
public:

Loading…
Cancel
Save