Skip to content

Commit e9e937d

Browse files
authored
Merge pull request #4454 from c1728p9/warning_fixes
Warning fixes
2 parents 8d6bc1d + 0de35e2 commit e9e937d

File tree

6 files changed

+36
-1
lines changed

6 files changed

+36
-1
lines changed

features/frameworks/greentea-client/source/greentea_metrics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ typedef struct {
3232
uint32_t max_stack;
3333
} thread_info_t;
3434

35+
#if defined(MBED_STACK_STATS_ENABLED) && MBED_STACK_STATS_ENABLED
3536
// Mutex to protect "buf"
3637
static SingletonPtr<Mutex> mutex;
37-
#if defined(MBED_STACK_STATS_ENABLED) && MBED_STACK_STATS_ENABLED
3838
static char buf[128];
3939
static SingletonPtr<CircularBuffer<thread_info_t, THREAD_BUF_COUNT> > queue;
4040
#endif

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)