From 74ff7361c38c4f8620b68c72fd2263c1f2d6a5a2 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sun, 4 Dec 2022 20:45:57 +0200 Subject: Fix clang-tidy warnings Signed-off-by: Tomi Valkeinen --- kms++/inc/kms++/blob.h | 1 + kms++/inc/kms++/drmobject.h | 1 + kms++/inc/kms++/pagefliphandler.h | 2 ++ kms++/inc/kms++/pixelformats.h | 4 ++-- kms++/inc/kms++/plane.h | 2 ++ kms++/inc/kms++/property.h | 1 + 6 files changed, 9 insertions(+), 2 deletions(-) (limited to 'kms++') diff --git a/kms++/inc/kms++/blob.h b/kms++/inc/kms++/blob.h index 011613d..386e9d5 100644 --- a/kms++/inc/kms++/blob.h +++ b/kms++/inc/kms++/blob.h @@ -2,6 +2,7 @@ #include "drmobject.h" #include +#include namespace kms { diff --git a/kms++/inc/kms++/drmobject.h b/kms++/inc/kms++/drmobject.h index e15ed4c..587f122 100644 --- a/kms++/inc/kms++/drmobject.h +++ b/kms++/inc/kms++/drmobject.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include "decls.h" diff --git a/kms++/inc/kms++/pagefliphandler.h b/kms++/inc/kms++/pagefliphandler.h index 2f5fdcd..e727375 100644 --- a/kms++/inc/kms++/pagefliphandler.h +++ b/kms++/inc/kms++/pagefliphandler.h @@ -1,5 +1,7 @@ #pragma once +#include + namespace kms { class PageFlipHandlerBase diff --git a/kms++/inc/kms++/pixelformats.h b/kms++/inc/kms++/pixelformats.h index 6f2671b..8ebb76b 100644 --- a/kms++/inc/kms++/pixelformats.h +++ b/kms++/inc/kms++/pixelformats.h @@ -66,12 +66,12 @@ enum class PixelFormat : uint32_t { BGRA1010102 = MakeFourCC("BA30"), }; -static inline PixelFormat FourCCToPixelFormat(const std::string& fourcc) +inline PixelFormat FourCCToPixelFormat(const std::string& fourcc) { return (PixelFormat)MakeFourCC(fourcc.c_str()); } -static inline std::string PixelFormatToFourCC(PixelFormat f) +inline std::string PixelFormatToFourCC(PixelFormat f) { char buf[5] = { (char)(((uint32_t)f >> 0) & 0xff), (char)(((uint32_t)f >> 8) & 0xff), diff --git a/kms++/inc/kms++/plane.h b/kms++/inc/kms++/plane.h index d3cfde5..f6d0ca6 100644 --- a/kms++/inc/kms++/plane.h +++ b/kms++/inc/kms++/plane.h @@ -1,6 +1,8 @@ #pragma once #include "drmpropobject.h" +#include "pixelformats.h" +#include namespace kms { diff --git a/kms++/inc/kms++/property.h b/kms++/inc/kms++/property.h index 7c7b834..e080962 100644 --- a/kms++/inc/kms++/property.h +++ b/kms++/inc/kms++/property.h @@ -2,6 +2,7 @@ #include "drmobject.h" #include +#include #include namespace kms -- cgit v1.2.3