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
Russ Butler 2017-06-05 18:05:38 -05:00
parent 2d7cf60278
commit 0de35e2a21
5 changed files with 35 additions and 0 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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>

View File

@ -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>