Commit b2922560 authored by louiz’'s avatar louiz’

Fix some compilation warning/errors that appear on FreeBSD

parent e5b392ec
......@@ -2,6 +2,7 @@
#include <network/resolver.hpp>
#include <string.h>
#include <arpa/inet.h>
#include <cstdlib>
using namespace std::string_literals;
......
......@@ -19,7 +19,7 @@
class BiboumiComponent;
class Poller;
class ResultSetInfo;
struct ResultSetInfo;
/**
* A callback called for each IrcMessage we receive. If the message triggers
......
......@@ -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),
......
......@@ -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);
......
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