diff options
Diffstat (limited to 'lib/ext2fs/mmp.c')
-rw-r--r-- | lib/ext2fs/mmp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ext2fs/mmp.c b/lib/ext2fs/mmp.c index 0cf0d0da..2da935e0 100644 --- a/lib/ext2fs/mmp.c +++ b/lib/ext2fs/mmp.c @@ -34,10 +34,12 @@ #define O_DIRECT 0 #endif +#if __GNUC_PREREQ (4, 6) #pragma GCC diagnostic push #ifndef CONFIG_MMP #pragma GCC diagnostic ignored "-Wunused-parameter" #endif +#endif errcode_t ext2fs_mmp_read(ext2_filsys fs, blk64_t mmp_blk, void *buf) { @@ -465,4 +467,6 @@ mmp_error: return EXT2_ET_OP_NOT_SUPPORTED; #endif } +#if __GNUC_PREREQ (4, 6) #pragma GCC diagnostic pop +#endif |