GCC 7.2 vk_physical_device.h:138:9 compile error: ISO C++ forbids comparison between pointer and integer
Opened this issue · 0 comments
Deleted user commented
/home/constantine/AMDVLK/pal/inc/util/palAssert.h:96:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ((_expr) == false) \
^
/home/constantine/AMDVLK/pal/inc/util/palAssert.h:104:27: note: in expansion of macro ‘PAL_ASSERT_MSG’
#define PAL_ASSERT(_expr) PAL_ASSERT_MSG(_expr, "%s", "Unknown")
^~~~~~~~~~~~~~
/home/constantine/AMDVLK/xgl/icd/api/include/vk_utils.h:54:19: note: in expansion of macro ‘PAL_ASSERT’
#define VK_ASSERT PAL_ASSERT
^~~~~~~~~~
/home/constantine/AMDVLK/xgl/icd/api/include/vk_physical_device.h:138:9: note: in expansion of macro ‘VK_ASSERT’
VK_ASSERT(pVkIndex);
^~~~~~~~~
make[2]: *** [icd/CMakeFiles/xgl.dir/api/app_profile.cpp.o] Error 1
make[1]: *** [icd/CMakeFiles/xgl.dir/all] Error 2
make: *** [all] Error 2
constantine@linux:~/AMDVLK$ gcc --version
gcc (Ubuntu 7.2.0-18ubuntu2) 7.2.0