From: Tomasz Swierczek Date: Thu, 6 Jul 2023 07:05:04 +0000 (+0200) Subject: Fix build for new toolchain X-Git-Tag: accepted/tizen/unified/20230710.013127~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a92b0f252b66c8dfbd62b16fbaeb7096e79d7f5;p=platform%2Fcore%2Fsecurity%2Fsecurity-manager.git Fix build for new toolchain Change-Id: I156cf22c4a752057490a6d6d7fbe040358fc933d --- diff --git a/src/common/service_impl_utils.cpp b/src/common/service_impl_utils.cpp index 2a47c2ae..63614310 100644 --- a/src/common/service_impl_utils.cpp +++ b/src/common/service_impl_utils.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2022 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2019-2023 Samsung Electronics Co., Ltd. All rights reserved. * * This file is licensed under the terms of MIT License or the Apache License * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details. @@ -27,6 +27,8 @@ #include "service_impl_utils.h" +#include + #include #include diff --git a/src/common/smack-labels.cpp b/src/common/smack-labels.cpp index 9c95961c..0376a5fb 100644 --- a/src/common/smack-labels.cpp +++ b/src/common/smack-labels.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2022 Samsung Electronics Co., Ltd. All rights reserved + * Copyright (c) 2014-2023 Samsung Electronics Co., Ltd. All rights reserved * * This file is licensed under the terms of MIT License or the Apache License * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details. @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include diff --git a/src/common/utils.cpp b/src/common/utils.cpp index 282ec837..53a9fdf8 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2022 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2019-2023 Samsung Electronics Co., Ltd. All rights reserved. * * This file is licensed under the terms of MIT License or the Apache License * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details. @@ -27,6 +27,7 @@ */ #include +#include #include #include #include diff --git a/src/server/rules-loader/security-manager-rules-loader.cpp b/src/server/rules-loader/security-manager-rules-loader.cpp index dd3eea46..8761ba75 100644 --- a/src/server/rules-loader/security-manager-rules-loader.cpp +++ b/src/server/rules-loader/security-manager-rules-loader.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2018-2023 Samsung Electronics Co., Ltd. All rights reserved. * * This file is licensed under the terms of MIT License or the Apache License * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details. @@ -58,7 +58,6 @@ namespace { // constexpr const char *dbUpdateScript[dbVersion]; #include "../gen/db.h" -static_assert(dbSchema); // this ensures that parsing the sql files was done correctly and we have proper // number of update scripts static_assert(dbVersion == arraySize(dbUpdateScript));