diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-04 10:47:58 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-04 11:07:37 +0200 |
commit | 5953e2ce95dc0cb809d529c4103ae6b80f0248c0 (patch) | |
tree | 5ef857b37b4ab889e8d8f56c010283f77821a8c1 /src/Log.h | |
parent | 2e325d2c2a34ecda37636e67969ee1550e78fbba (diff) | |
download | dabmux-5953e2ce95dc0cb809d529c4103ae6b80f0248c0.tar.gz dabmux-5953e2ce95dc0cb809d529c4103ae6b80f0248c0.tar.bz2 dabmux-5953e2ce95dc0cb809d529c4103ae6b80f0248c0.zip |
Remove some compilation warnings
Diffstat (limited to 'src/Log.h')
-rw-r--r-- | src/Log.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -45,12 +45,13 @@ enum log_level_t {debug = 0, info, warn, error, alert, emerg}; -const std::string levels_as_str[] = +static const std::string levels_as_str[] = { " ", " ", "WARN ", "ERROR", "ALERT", "EMERG"} ; /** Abstract class all backends must inherit from */ class LogBackend { public: + virtual ~LogBackend() {} virtual void log(log_level_t level, std::string message) = 0; virtual std::string get_name() = 0; }; @@ -82,7 +83,7 @@ class LogToSyslog : public LogBackend { syslog(syslog_level, SYSLOG_IDENT " %s", message.c_str()); } - std::string get_name() { return name; }; + std::string get_name() { return name; } private: std::string name; @@ -117,7 +118,7 @@ class LogToFile : public LogBackend { fflush(log_file); } - std::string get_name() { return name; }; + std::string get_name() { return name; } private: std::string name; @@ -128,7 +129,7 @@ class LogLine; class Logger { public: - Logger() {}; + Logger() {} void register_backend(LogBackend* backend); |