Re: [PATCH] e2fsprogs: fix compile error and warnings for old gcc versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 13, 2018 at 06:42:48PM -0600, Li Dongyang wrote:
> -Wimplicit-fallthrough option was added in gcc7 and
> -Wpedantic was added in gcc4.8, while #pragma GCC diagnostic
> support was not available until gcc4.6
> 
> We got following warnings:
> ../lib/ext2fs/fiemap.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
> ../lib/ext2fs/fiemap.h:36: warning: unknown option after ‘#pragma GCC diagnostic’ kind
> ../lib/ext2fs/fiemap.h:38: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
> 
> and error:
> filefrag.c: In function ‘main’:
> filefrag.c:577: error: #pragma GCC diagnostic not allowed inside functions
> filefrag.c:578: error: #pragma GCC diagnostic not allowed inside functions
> filefrag.c:595: error: #pragma GCC diagnostic not allowed inside functions
> 
> when compiling latest e2fsprogs with a gcc older than 4.6
> e.g. on CentOS 6.9
> 
> Signed-off-by: Li Dongyang <dongyangli@xxxxxxx>

Applied, thanks.

					- Ted



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux