Commit 8d443c1c authored by Tristan Matthews's avatar Tristan Matthews

* #8968: suppress unusedFunction warnings for functions that are actually used

Usage hidden because they are generated or shared library functions.
parent 99bc565a
......@@ -133,11 +133,13 @@ class Alaw : public sfl::AudioCodec {
};
// the class factories
// cppcheck-suppress unusedFunction
extern "C" sfl::Codec* create()
{
return new Alaw(8);
}
// cppcheck-suppress unusedFunction
extern "C" void destroy(sfl::Codec* a)
{
delete a;
......
......@@ -126,11 +126,13 @@ class Celt : public sfl::AudioCodec {
};
// the class factories
// cppcheck-suppress unusedFunction
extern "C" sfl::Codec* create()
{
return new Celt(115);
}
// cppcheck-suppress unusedFunction
extern "C" void destroy(sfl::Codec* a)
{
delete a;
......
......@@ -810,11 +810,13 @@ class G722 : public sfl::AudioCodec {
};
// the class factories
// cppcheck-suppress unusedFunction
extern "C" sfl::Codec* create()
{
return new G722(9);
}
// cppcheck-suppress unusedFunction
extern "C" void destroy(sfl::Codec* a)
{
delete a;
......
......@@ -87,11 +87,13 @@ class Gsm : public sfl::AudioCodec {
gsm encode_gsmhandle_;
};
// cppcheck-suppress unusedFunction
extern "C" sfl::Codec* create()
{
return new Gsm(3);
}
// cppcheck-suppress unusedFunction
extern "C" void destroy(sfl::Codec* a)
{
delete a;
......
......@@ -32,11 +32,13 @@
#include "audiocodec.h"
#include "speexcodec.h"
// cppcheck-suppress unusedFunction
extern "C" sfl::Codec* create()
{
return new Speex(110);
}
// cppcheck-suppress unusedFunction
extern "C" void destroy(sfl::Codec* a)
{
delete a;
......
......@@ -32,11 +32,13 @@
#include "audiocodec.h"
#include "speexcodec.h"
// cppcheck-suppress unusedFunction
extern "C" sfl::Codec* create()
{
return new Speex(112);
}
// cppcheck-suppress unusedFunction
extern "C" void destroy(sfl::Codec* a)
{
delete a;
......
......@@ -32,11 +32,13 @@
#include "audiocodec.h"
#include "speexcodec.h"
// cppcheck-suppress unusedFunction
extern "C" sfl::Codec* create()
{
return new Speex(111);
}
// cppcheck-suppress unusedFunction
extern "C" void destroy(sfl::Codec* a)
{
delete a;
......
......@@ -125,11 +125,13 @@ class Ulaw : public sfl::AudioCodec {
};
// the class factories
// cppcheck-suppress unusedFunction
extern "C" sfl::Codec* create()
{
return new Ulaw(0);
}
// cppcheck-suppress unusedFunction
extern "C" void destroy(sfl::Codec* a)
{
delete a;
......
......@@ -39,6 +39,7 @@
class NetworkManager : public org::freedesktop::NetworkManager_proxy,
public DBus::IntrospectableProxy,
// cppcheck-suppress unusedFunction
public DBus::ObjectProxy {
public:
NetworkManager(DBus::Connection &, const DBus::Path &, const char*);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment