Nebi 0 Posted February 17, 2022 Share Posted February 17, 2022 DragonSoul.cpp:516:18: warning: the compiler can assume that the address of 'aItemPoses' will never be NULL [-Waddress] DragonSoul.cpp:516:9: warning: 'nonnull' argument 'aItemPoses' compared to NULL [-Wnonnull-compare] if (NULL == aItemPoses) { return false; } can you help me? Link to comment Share on other sites More sharing options...
Contributor Amun 1917 Posted February 24, 2022 Contributor Share Posted February 24, 2022 NULL is basically 0. You can try changing it to: if (!aItemPoses) { return false; } It's still checking for falsy, but maybe the warning's going to go away. Cheers! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now