fm10k: fix build with gcc < 4.4
authorMarvin Liu <yong.liu@intel.com>
Thu, 19 Mar 2015 03:16:54 +0000 (11:16 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 22 Mar 2015 23:31:19 +0000 (00:31 +0100)
commit5c23bef99aeb01648c107f57dc397f2f6099fee6
tree4dc0f3d1428cf1c7e872a72af724bab1cbf88d07
parent55900aa94d0772489fb3320cea7ba30ffb20a154
fm10k: fix build with gcc < 4.4

Build fm10k driver in Suse11 SP3 will be failed for unrecognized flag.
cc1: error: unrecognized command line option "-Wno-unused-but-set-variable"

This flag is supported from gcc 4.4, so add gcc version check in fm10k.
In the same time, make option check more clear in ixgbe driver.

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_fm10k/Makefile
lib/librte_pmd_ixgbe/Makefile