app/test: fix build constructor with gcc < 4.4
authorMarvin Liu <yong.liu@intel.com>
Thu, 19 Mar 2015 03:16:56 +0000 (11:16 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 22 Mar 2015 23:31:20 +0000 (00:31 +0100)
commitd788ccb1309069286fc2e3ca0355a2a480b65986
tree6f6646c60d7387ac9dc50630e8b309e726fdd3bd
parent3fb20a41a469e89d08ba5e409d3f24682bae326d
app/test: fix build constructor with gcc < 4.4

Build app/test will be failed for function only defined but not used.
test_prefetch.c:65: error: ‘testfn_prefetch_cmd’ defined but not used

Add attribute used in test function declaration can fix this.
static void __attribute__((used)) testfn_##t(void);

Fixes: 727909c59231 ("app/test: introduce dynamic commands list")

Signed-off-by: Marvin Liu <yong.liu@intel.com>
app/test/test.h