Skip to content

Commit 0de35e2

Browse files
committed
Fix config store deprecation warnings
Silence deprecation warnings in the config store C and C++ files. This removes warnings that not relevant to applications. Note - using these deprecated functions still gives an error outside of these files.
1 parent 2d7cf60 commit 0de35e2

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

features/storage/FEATURE_STORAGE/cfstore/source/cfstore_svm.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
*
1717
*/
1818

19+
// This file is deprecated so deprecation warnings when building it are silenced
20+
#if defined ( __CC_ARM )
21+
#pragma diag_suppress 1361 // Deprecated declaration
22+
#elif defined ( __GNUC__ )
23+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
24+
#endif
25+
1926
#include <stdint.h>
2027
#include <Driver_Common.h>
2128
#include "storage_volume_manager.h"

features/storage/FEATURE_STORAGE/cfstore/source/cfstore_test.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
* test support code implementation file.
1919
*/
2020

21+
// This file is deprecated so deprecation warnings when building it are silenced
22+
#if defined ( __CC_ARM )
23+
#pragma diag_suppress 1361 // Deprecated declaration
24+
#elif defined ( __GNUC__ )
25+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
26+
#endif
27+
2128
#include "cfstore_config.h"
2229
#include "cfstore_debug.h"
2330
#include "cfstore_test.h"

features/storage/FEATURE_STORAGE/cfstore/source/configuration_store.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
* limitations under the License.
1717
*/
1818

19+
// This file is deprecated so deprecation warnings when building it are silenced
20+
#if defined ( __CC_ARM )
21+
#pragma diag_suppress 1361 // Deprecated declaration
22+
#elif defined ( __GNUC__ )
23+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
24+
#endif
25+
1926
#include "cfstore_config.h"
2027
#include "cfstore_debug.h"
2128
#include "cfstore_list.h"

features/storage/FEATURE_STORAGE/storage-volume-manager/source/storage_volume.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
* limitations under the License.
1616
*/
1717

18+
// This file is deprecated so deprecation warnings when building it are silenced
19+
#if defined ( __CC_ARM )
20+
#pragma diag_suppress 1361 // Deprecated declaration
21+
#elif defined ( __GNUC__ )
22+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
23+
#endif
24+
1825
#include "storage-volume-manager/storage_volume_manager.h"
1926
#include <string.h>
2027
#include <inttypes.h>

features/storage/FEATURE_STORAGE/storage-volume-manager/source/storage_volume_manager.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
* limitations under the License.
1616
*/
1717

18+
// This file is deprecated so deprecation warnings when building it are silenced
19+
#if defined ( __CC_ARM )
20+
#pragma diag_suppress 1361 // Deprecated declaration
21+
#elif defined ( __GNUC__ )
22+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
23+
#endif
24+
1825
#include "storage-volume-manager/storage_volume_manager.h"
1926
#include <string.h>
2027
#include <inttypes.h>

0 commit comments

Comments
 (0)