From f7d9256f07b90cc4fd581b98294c08960523bfbb Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Sat, 8 May 2021 10:24:09 -0300 Subject: [PATCH] Logger: remove unused COMMONAPI_EXPORT The structure is declared in the header and the export is unused as seen with clang and -Wignored-attributes: CommonAPI-3.2/CommonAPI/Logger.hpp:31:37: warning: 'visibility' attribute ignored when parsing type [-Wignored-attributes] enum class Level : std::uint8_t COMMONAPI_EXPORT { ^~~~~~~~~~~~~~~~ CommonAPI-3.2/CommonAPI/Export.hpp:19:46: note: expanded from macro 'COMMONAPI_EXPORT' #define COMMONAPI_EXPORT __attribute__ ((visibility ("default"))) ^~~~~~~~~~~~~~~~~~~~~~ Closes: #25 Signed-off-by: Gustavo Sverzut Barbieri --- include/CommonAPI/Logger.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/CommonAPI/Logger.hpp b/include/CommonAPI/Logger.hpp index 0658be8..70bc3c7 100644 --- a/include/CommonAPI/Logger.hpp +++ b/include/CommonAPI/Logger.hpp @@ -28,7 +28,7 @@ namespace CommonAPI { class Logger { public: - enum class Level : std::uint8_t COMMONAPI_EXPORT { + enum class Level : std::uint8_t { CAPI_LOG_NONE = 0, CAPI_LOG_FATAL = 1, CAPI_LOG_ERROR = 2,