diff options
author | louiz’ <louiz@louiz.org> | 2016-10-04 02:54:35 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-10-03 17:58:16 +0200 |
commit | b29225601a475efe7f28fe7002eba72e70f3272b (patch) | |
tree | b502cf81197c102bc313eb4b9f93fa7b7b53b134 | |
parent | e5b392ece8c90605b86d0d93f0ca6989048bc1c3 (diff) | |
download | biboumi-b29225601a475efe7f28fe7002eba72e70f3272b.tar.gz biboumi-b29225601a475efe7f28fe7002eba72e70f3272b.tar.bz2 biboumi-b29225601a475efe7f28fe7002eba72e70f3272b.tar.xz biboumi-b29225601a475efe7f28fe7002eba72e70f3272b.zip |
Fix some compilation warning/errors that appear on FreeBSD
-rw-r--r-- | louloulibs/network/resolver.cpp | 1 | ||||
-rw-r--r-- | src/bridge/bridge.hpp | 2 | ||||
-rw-r--r-- | src/irc/iid.cpp | 2 | ||||
-rw-r--r-- | src/irc/iid.hpp | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/louloulibs/network/resolver.cpp b/louloulibs/network/resolver.cpp index 9d6de23..d3ecd7c 100644 --- a/louloulibs/network/resolver.cpp +++ b/louloulibs/network/resolver.cpp @@ -2,6 +2,7 @@ #include <network/resolver.hpp> #include <string.h> #include <arpa/inet.h> +#include <cstdlib> using namespace std::string_literals; diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp index 1a1d201..208de32 100644 --- a/src/bridge/bridge.hpp +++ b/src/bridge/bridge.hpp @@ -19,7 +19,7 @@ class BiboumiComponent; class Poller; -class ResultSetInfo; +struct ResultSetInfo; /** * A callback called for each IrcMessage we receive. If the message triggers diff --git a/src/irc/iid.cpp b/src/irc/iid.cpp index ff14da5..d442013 100644 --- a/src/irc/iid.cpp +++ b/src/irc/iid.cpp @@ -5,6 +5,8 @@ #include <utils/encoding.hpp> +constexpr char Iid::separator[]; + Iid::Iid(const std::string& local, const std::string& server, Iid::Type type): type(type), local(local), diff --git a/src/irc/iid.hpp b/src/irc/iid.hpp index a857ae9..44861c1 100644 --- a/src/irc/iid.hpp +++ b/src/irc/iid.hpp @@ -54,7 +54,7 @@ public: User, Server, }; - static constexpr auto separator = "%"; + static constexpr char separator[]{"%"}; Iid(const std::string& iid, const std::set<char>& chantypes); Iid(const std::string& iid, const std::initializer_list<char>& chantypes); Iid(const std::string& iid, const Bridge* bridge); |