Commit 54bc2118d675863956983e6687da32fcd64c4e0d

Authored by Adeel Kazmi
1 parent a05f0941

Fixed SVACE errors

Change-Id: Icfc1abe106993a3c59107ba06be9e0b3ffd660d6
builder/dali-builder.cpp
1 1 /*
2   - * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  2 + * Copyright (c) 2023 Samsung Electronics Co., Ltd.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
... ... @@ -145,7 +145,7 @@ bool FileWatcher::FileHasChanged(void)
145 145 }
146 146 else
147 147 {
148   - mLastTime = buf.st_mtime;
  148 + mLastTime = std::time_t(buf.st_mtime);
149 149 return false;
150 150 }
151 151 }
... ...
examples/builder/examples.cpp
1 1 /*
2   - * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  2 + * Copyright (c) 2023 Samsung Electronics Co., Ltd.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
... ... @@ -205,7 +205,7 @@ bool FileWatcher::FileHasChanged(void)
205 205 else
206 206 {
207 207 const bool result = buf.st_mtime > mLastTime;
208   - mLastTime = buf.st_mtime;
  208 + mLastTime = std::time_t(buf.st_mtime);
209 209 return result;
210 210 }
211 211  
... ...
examples/rendering-basic-pbr/ktx-loader.cpp
1 1 /*
2   - * Copyright (c) 2021 Samsung Electronics Co., Ltd.
  2 + * Copyright (c) 2023 Samsung Electronics Co., Ltd.
3 3 *
4 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 5 * you may not use this file except in compliance with the License.
... ... @@ -108,7 +108,7 @@ bool LoadCubeMapFromKtxFile(const std::string& path, CubeData& cubedata)
108 108 }
109 109  
110 110 // Skip the key-values:
111   - if(fseek(fp, header.bytesOfKeyValueData, SEEK_CUR))
  111 + if(fseek(fp, (long int)(header.bytesOfKeyValueData), SEEK_CUR))
112 112 {
113 113 return false;
114 114 }
... ...