smart.c: Fix compilation error with GCC 7
authorJaroslaw Pelczar <j.pelczar@samsung.com>
Tue, 29 Aug 2017 10:02:29 +0000 (12:02 +0200)
committerPiotr Marcinkiewicz <p.marcinkiew@samsung.com>
Thu, 31 Aug 2017 08:29:32 +0000 (10:29 +0200)
commitf48b717ac08a67c7ed6b061c326418ac44f57fb7
tree6be69140afc0c9813777469756dc954d4fab2d33
parente8666efc7091b60ecfaf96025f99d6d3d0abe68e
smart.c: Fix compilation error with GCC 7

Definition of variables depends on CONFIG_MTD_SMART_WEAR_LEVEL

Fixes following build error:

driver/mtd/smart.c:209:22: error: ‘gWearBitToLevelMap4’ defined but not
used [-Werror=unused-const-variable=]
static const uint8_t gWearBitToLevelMap4[] = {
                      ^~~~~~~~~~~~~~~~~~~
driver/mtd/smart.c:198:22: error: ‘gWearLevelToBitMap4’ defined but not
used [-Werror=unused-const-variable=]
static const uint8_t gWearLevelToBitMap4[] = {
                      ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
os/fs/driver/mtd/smart.c