mirror of
				https://github.com/ohwgiles/laminar.git
				synced 2025-06-13 12:54:29 +00:00 
			
		
		
		
	fix warnings under clang++
This commit is contained in:
		
							parent
							
								
									9974df21ce
								
							
						
					
					
						commit
						9862affd98
					
				| @ -1,5 +1,5 @@ | |||||||
| ///
 | ///
 | ||||||
| /// Copyright 2019 Oliver Giles
 | /// Copyright 2019-2020 Oliver Giles
 | ||||||
| ///
 | ///
 | ||||||
| /// This file is part of Laminar
 | /// This file is part of Laminar
 | ||||||
| ///
 | ///
 | ||||||
| @ -28,8 +28,8 @@ | |||||||
| typedef unsigned int uint; | typedef unsigned int uint; | ||||||
| typedef unsigned long ulong; | typedef unsigned long ulong; | ||||||
| 
 | 
 | ||||||
| struct Laminar; | class Laminar; | ||||||
| struct Resources; | class Resources; | ||||||
| struct LogWatcher; | struct LogWatcher; | ||||||
| struct EventPeer; | struct EventPeer; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -67,7 +67,6 @@ inline kj::Path operator/(const std::string& p, const T& ext) { | |||||||
| typedef std::string str; | typedef std::string str; | ||||||
| 
 | 
 | ||||||
| Laminar::Laminar(Server &server, Settings settings) : | Laminar::Laminar(Server &server, Settings settings) : | ||||||
|     settings(settings), |  | ||||||
|     srv(server), |     srv(server), | ||||||
|     homePath(kj::Path::parse(&settings.home[1])), |     homePath(kj::Path::parse(&settings.home[1])), | ||||||
|     fsHome(kj::newDiskFilesystem()->getRoot().openSubdir(homePath, kj::WriteMode::MODIFY)), |     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
 | /// This file is part of Laminar
 | ||||||
| ///
 | ///
 | ||||||
| @ -31,7 +31,7 @@ | |||||||
| // Context name to context object map
 | // Context name to context object map
 | ||||||
| typedef std::unordered_map<std::string, std::shared_ptr<Context>> ContextMap; | typedef std::unordered_map<std::string, std::shared_ptr<Context>> ContextMap; | ||||||
| 
 | 
 | ||||||
| struct Server; | class Server; | ||||||
| class Json; | class Json; | ||||||
| 
 | 
 | ||||||
| class Http; | class Http; | ||||||
| @ -125,7 +125,6 @@ private: | |||||||
| 
 | 
 | ||||||
|     std::unordered_map<std::string, std::string> jobGroups; |     std::unordered_map<std::string, std::string> jobGroups; | ||||||
| 
 | 
 | ||||||
|     Settings settings; |  | ||||||
|     RunSet activeJobs; |     RunSet activeJobs; | ||||||
|     Database* db; |     Database* db; | ||||||
|     Server& srv; |     Server& srv; | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| ///
 | ///
 | ||||||
| /// Copyright 2019 Oliver Giles
 | /// Copyright 2019-2020 Oliver Giles
 | ||||||
| ///
 | ///
 | ||||||
| /// This file is part of Laminar
 | /// This file is part of Laminar
 | ||||||
| ///
 | ///
 | ||||||
| @ -23,7 +23,7 @@ | |||||||
| #include <capnp/rpc-twoparty.h> | #include <capnp/rpc-twoparty.h> | ||||||
| #include <capnp/rpc.capnp.h> | #include <capnp/rpc.capnp.h> | ||||||
| 
 | 
 | ||||||
| struct Laminar; | class Laminar; | ||||||
| 
 | 
 | ||||||
| class Rpc { | class Rpc { | ||||||
| public: | public: | ||||||
|  | |||||||
| @ -95,7 +95,7 @@ kj::Promise<int> Server::onChildExit(kj::Maybe<pid_t> &pid) { | |||||||
| 
 | 
 | ||||||
| Server::PathWatcher& Server::watchPaths(std::function<void()> fn) | Server::PathWatcher& Server::watchPaths(std::function<void()> fn) | ||||||
| { | { | ||||||
|     struct PathWatcherImpl : public PathWatcher { |     struct PathWatcherImpl final : public PathWatcher { | ||||||
|         PathWatcher& addPath(const char* path) override { |         PathWatcher& addPath(const char* path) override { | ||||||
|             inotify_add_watch(fd, path, IN_ONLYDIR | IN_CLOSE_WRITE | IN_CREATE | IN_DELETE); |             inotify_add_watch(fd, path, IN_ONLYDIR | IN_CLOSE_WRITE | IN_CREATE | IN_DELETE); | ||||||
|             return *this; |             return *this; | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| ///
 | ///
 | ||||||
| /// Copyright 2015-2017 Oliver Giles
 | /// Copyright 2015-2020 Oliver Giles
 | ||||||
| ///
 | ///
 | ||||||
| /// This file is part of Laminar
 | /// This file is part of Laminar
 | ||||||
| ///
 | ///
 | ||||||
| @ -26,9 +26,9 @@ | |||||||
| #include <functional> | #include <functional> | ||||||
| #include <sys/types.h> | #include <sys/types.h> | ||||||
| 
 | 
 | ||||||
| struct Laminar; | class Laminar; | ||||||
| struct Http; | class Http; | ||||||
| struct Rpc; | class Rpc; | ||||||
| 
 | 
 | ||||||
| // This class manages the program's asynchronous event loop
 | // This class manages the program's asynchronous event loop
 | ||||||
| class Server final : public kj::TaskSet::ErrorHandler { | class Server final : public kj::TaskSet::ErrorHandler { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user