diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-10-21 14:11:41 +0100 | 
|---|---|---|
| committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2024-01-02 12:50:59 +0000 | 
| commit | 248ad58be229252624d45febd7eb3ebbcf15a3ed (patch) | |
| tree | b44faba706dadb4436f4cd7037ac2ccf5e0a49a4 | |
| parent | Remove apache from DB grants (diff) | |
| download | gentoobrowse-api-248ad58be229252624d45febd7eb3ebbcf15a3ed.tar.bz2 gentoobrowse-api-248ad58be229252624d45febd7eb3ebbcf15a3ed.tar.xz gentoobrowse-api-248ad58be229252624d45febd7eb3ebbcf15a3ed.zip  | |
Fix up warnings in maintenanceBugs
| -rw-r--r-- | gentoobrowse-api/service/maintenanceBugs.cpp | 14 | 
1 files changed, 5 insertions, 9 deletions
diff --git a/gentoobrowse-api/service/maintenanceBugs.cpp b/gentoobrowse-api/service/maintenanceBugs.cpp index b88c857..c99a355 100644 --- a/gentoobrowse-api/service/maintenanceBugs.cpp +++ b/gentoobrowse-api/service/maintenanceBugs.cpp @@ -1,12 +1,8 @@  #include "command_fwd.h"  #include "connection.h" -#include "connectionPool.h"  #include "logWriter.h"  #include "maintenanceimpl.h"  #include "resourcePool.impl.h" -#include "wrap/domparser.h" -#include "wrap/regex.h" -#include "wrap/ustring.h"  #include <Ice/Properties.h>  #include <boost/core/typeinfo.hpp>  #include <boost/detail/basic_pointerbuf.hpp> @@ -19,11 +15,9 @@  #include <curlStream.h>  #include <exception>  #include <filesystem> -#include <initializer_list>  #include <lexer-regex.h> -#include <libxml++/parsers/saxparser.h> // IWYU pragma: keep +#include <libxml++/parsers/saxparser.h>  #include <logger.h> -#include <memory>  #include <modifycommand.h>  #include <nagios.h>  #include <stack> @@ -38,8 +32,10 @@ namespace Ice {  }  namespace Gentoo::Service { -	AdHoc::Lexer::PatternPtr bugLink = AdHoc::LexerMatchers::regex( -			R"R(Bug:(\d+) - "" status:(\w*) resolution:(\w*) severity:(\w*).*)R", G_REGEX_OPTIMIZE); +	namespace { +		const AdHoc::Lexer::PatternPtr bugLink = AdHoc::LexerMatchers::regex( +				R"R(Bug:(\d+) - "" status:(\w*) resolution:(\w*) severity:(\w*).*)R", G_REGEX_OPTIMIZE); +	}  	class BugListParser : public xmlpp::SaxParser, AdHoc::Lexer {  	public:  | 
