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 /src/irc | |
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
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/iid.cpp | 2 | ||||
-rw-r--r-- | src/irc/iid.hpp | 2 |
2 files changed, 3 insertions, 1 deletions
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); |