fix warnings under clang++

pull/137/head
Oliver Giles 4 years ago
parent 9974df21ce
commit 9862affd98

@ -1,5 +1,5 @@
///
/// Copyright 2019 Oliver Giles
/// Copyright 2019-2020 Oliver Giles
///
/// This file is part of Laminar
///
@ -28,8 +28,8 @@
typedef unsigned int uint;
typedef unsigned long ulong;
struct Laminar;
struct Resources;
class Laminar;
class Resources;
struct LogWatcher;
struct EventPeer;

@ -67,7 +67,6 @@ inline kj::Path operator/(const std::string& p, const T& ext) {
typedef std::string str;
Laminar::Laminar(Server &server, Settings settings) :
settings(settings),
srv(server),
homePath(kj::Path::parse(&settings.home[1])),
fsHome(kj::newDiskFilesystem()->getRoot().openSubdir(homePath, kj::WriteMode::MODIFY)),

@ -1,5 +1,5 @@
///
/// Copyright 2015-2019 Oliver Giles
/// Copyright 2015-2020 Oliver Giles
///
/// This file is part of Laminar
///
@ -31,7 +31,7 @@
// Context name to context object map
typedef std::unordered_map<std::string, std::shared_ptr<Context>> ContextMap;
struct Server;
class Server;
class Json;
class Http;
@ -125,7 +125,6 @@ private:
std::unordered_map<std::string, std::string> jobGroups;
Settings settings;
RunSet activeJobs;
Database* db;
Server& srv;

@ -1,5 +1,5 @@
///
/// Copyright 2019 Oliver Giles
/// Copyright 2019-2020 Oliver Giles
///
/// This file is part of Laminar
///
@ -23,7 +23,7 @@
#include <capnp/rpc-twoparty.h>
#include <capnp/rpc.capnp.h>
struct Laminar;
class Laminar;
class Rpc {
public:

@ -95,7 +95,7 @@ kj::Promise<int> Server::onChildExit(kj::Maybe<pid_t> &pid) {
Server::PathWatcher& Server::watchPaths(std::function<void()> fn)
{
struct PathWatcherImpl : public PathWatcher {
struct PathWatcherImpl final : public PathWatcher {
PathWatcher& addPath(const char* path) override {
inotify_add_watch(fd, path, IN_ONLYDIR | IN_CLOSE_WRITE | IN_CREATE | IN_DELETE);
return *this;

@ -1,5 +1,5 @@
///
/// Copyright 2015-2017 Oliver Giles
/// Copyright 2015-2020 Oliver Giles
///
/// This file is part of Laminar
///
@ -26,9 +26,9 @@
#include <functional>
#include <sys/types.h>
struct Laminar;
struct Http;
struct Rpc;
class Laminar;
class Http;
class Rpc;
// This class manages the program's asynchronous event loop
class Server final : public kj::TaskSet::ErrorHandler {

Loading…
Cancel
Save