mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/4454/head
parent
2d7cf60278
commit
0de35e2a21
|
|
@ -16,6 +16,13 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// This file is deprecated so deprecation warnings when building it are silenced
|
||||||
|
#if defined ( __CC_ARM )
|
||||||
|
#pragma diag_suppress 1361 // Deprecated declaration
|
||||||
|
#elif defined ( __GNUC__ )
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <Driver_Common.h>
|
#include <Driver_Common.h>
|
||||||
#include "storage_volume_manager.h"
|
#include "storage_volume_manager.h"
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,13 @@
|
||||||
* test support code implementation file.
|
* test support code implementation file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// This file is deprecated so deprecation warnings when building it are silenced
|
||||||
|
#if defined ( __CC_ARM )
|
||||||
|
#pragma diag_suppress 1361 // Deprecated declaration
|
||||||
|
#elif defined ( __GNUC__ )
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "cfstore_config.h"
|
#include "cfstore_config.h"
|
||||||
#include "cfstore_debug.h"
|
#include "cfstore_debug.h"
|
||||||
#include "cfstore_test.h"
|
#include "cfstore_test.h"
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,13 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// This file is deprecated so deprecation warnings when building it are silenced
|
||||||
|
#if defined ( __CC_ARM )
|
||||||
|
#pragma diag_suppress 1361 // Deprecated declaration
|
||||||
|
#elif defined ( __GNUC__ )
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "cfstore_config.h"
|
#include "cfstore_config.h"
|
||||||
#include "cfstore_debug.h"
|
#include "cfstore_debug.h"
|
||||||
#include "cfstore_list.h"
|
#include "cfstore_list.h"
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,13 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// This file is deprecated so deprecation warnings when building it are silenced
|
||||||
|
#if defined ( __CC_ARM )
|
||||||
|
#pragma diag_suppress 1361 // Deprecated declaration
|
||||||
|
#elif defined ( __GNUC__ )
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "storage-volume-manager/storage_volume_manager.h"
|
#include "storage-volume-manager/storage_volume_manager.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,13 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// This file is deprecated so deprecation warnings when building it are silenced
|
||||||
|
#if defined ( __CC_ARM )
|
||||||
|
#pragma diag_suppress 1361 // Deprecated declaration
|
||||||
|
#elif defined ( __GNUC__ )
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "storage-volume-manager/storage_volume_manager.h"
|
#include "storage-volume-manager/storage_volume_manager.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue