[dpdk-dev] how to avoid "non-matching type" in my program with dpdk

Linhaifeng haifeng.lin at huawei.com
Thu Nov 27 13:28:02 CET 2014


Hi,all

when i compile my program with dpdk there is a warning found by gcc.The message is like follow.I don't know how to avoid it.Help me.

/usr/include/dpdk-1.7.0/x86_64-native-linuxapp-gcc//include/rte_common.h:176: warning: cast from function call of type ‘uintptr_t’ to non-matching type ‘void *’

# gcc --version
gcc-4.3 (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
Regards,
Haifeng



More information about the dev mailing list