From 4ac149951b2020b4a6dafb0455d3f523e7c9cfe6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 15 Feb 2022 17:34:51 +0000 Subject: Fix up all warnings from all the tools --- unittests/config.cpp | 12 +++++++++++- unittests/core.cpp | 18 +++++++++++++++--- unittests/mockDefs.cpp | 9 ++++++++- unittests/mockDefs.h | 2 ++ unittests/service.cpp | 11 ++++++++++- 5 files changed, 46 insertions(+), 6 deletions(-) (limited to 'unittests') diff --git a/unittests/config.cpp b/unittests/config.cpp index 20a025a..6e3f92c 100644 --- a/unittests/config.cpp +++ b/unittests/config.cpp @@ -1,10 +1,20 @@ #define BOOST_TEST_MODULE GitFS_Config -#include +#include // IWYU pragma: keep #include #include "mockDefs.h" #include #include +#include +#include +#include +#include +#include +#include +#include +namespace NetFS { + class ConfigError; +} using namespace GitFS; using namespace GitFS::Test; diff --git a/unittests/core.cpp b/unittests/core.cpp index 9cd7552..e64ae80 100644 --- a/unittests/core.cpp +++ b/unittests/core.cpp @@ -1,10 +1,22 @@ #define BOOST_TEST_MODULE GitFS_Core -#include +#include // IWYU pragma: keep #include #include "mockDefs.h" -#include "sys/fcntl.h" -#include "sys/stat.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include using namespace GitFS; using namespace GitFS::Test; diff --git a/unittests/mockDefs.cpp b/unittests/mockDefs.cpp index a257758..a144575 100644 --- a/unittests/mockDefs.cpp +++ b/unittests/mockDefs.cpp @@ -1,7 +1,14 @@ #include "mockDefs.h" -#include +#include // IWYU pragma: keep #include #include +#include +#include +#include +#include +#include +#include +// IWYU pragma: no_include using namespace AdHoc::literals; diff --git a/unittests/mockDefs.h b/unittests/mockDefs.h index 750a256..9efe187 100644 --- a/unittests/mockDefs.h +++ b/unittests/mockDefs.h @@ -3,7 +3,9 @@ #include #include +#include #include +#include namespace GitFS::Test { class DLL_PUBLIC Service : public IceTray::DryIce { diff --git a/unittests/service.cpp b/unittests/service.cpp index b1bab5a..e2829a6 100644 --- a/unittests/service.cpp +++ b/unittests/service.cpp @@ -1,10 +1,19 @@ #define BOOST_TEST_MODULE GitFS_Service -#include +#include // IWYU pragma: keep #include #include "mockDefs.h" #include #include +#include +#include +#include +#include +#include +namespace NetFS { + class AuthError; + class ConfigError; +} using namespace GitFS; using namespace GitFS::Test; -- cgit v1.2.3