X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lib%2Fext2fs%2Fmmp.c;fp=lib%2Fext2fs%2Fmmp.c;h=2da935e0dd1094972a6f7a2f40e8c3d2c5fadec5;hb=a4894806840ff93c157f7def90107ce490f60fca;hp=0cf0d0da9f56cfaf9e34549ef05fd7a63ffdd182;hpb=56b93ffae82794d89e01f1bcaab0f150c8e76f5a;p=tools%2Fe2fsprogs.git diff --git a/lib/ext2fs/mmp.c b/lib/ext2fs/mmp.c index 0cf0d0d..2da935e 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