Closed rjopek closed 1 year ago
Hi,
I did the tests on linux.
../../../../../../include/nuklear_xlib/../nuklear.h:8838:14: warning: potential null pointer dereference [-Wnull-dereference] 8838 | cb->last = b->allocated; | ~~~~~~~~~^~~~~~~~~~~~~~ ../../../../../../include/nuklear_xlib/../nuklear.h:8837:13: warning: potential null pointer dereference [-Wnull-dereference] 8837 | cb->end = b->allocated; | ~~~~~~~~^~~~~~~~~~~~~~ ../../../../../../include/nuklear_xlib/../nuklear.h:8836:15: warning: potential null pointer dereference [-Wnull-dereference] 8836 | cb->begin = b->allocated; | ~~~~~~~~~~^~~~~~~~~~~~~~ ../../../../../../include/nuklear_xlib/../nuklear.h:8835:22: warning: potential null pointer dereference [-Wnull-dereference] 8835 | cb->use_clipping = (int)clip; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ../../../../../../include/nuklear_xlib/../nuklear.h:8834:14: warning: potential null pointer dereference [-Wnull-dereference] 8834 | cb->base = b; | ~~~~~~~~~^~~ In file included from ../../../../../../include/nuklear_xlib/hb_nuklear_xlib.h:24, from ../../../../../../src/nuklear.c:34: ../../../../../../include/nuklear_xlib/../nuklear.h:20749:23: warning: potential null pointer dereference [-Wnull-dereference] 20749 | popup->parent = win; | ~~~~~~~~~~~~~~^~~~~ ../../../../../../include/nuklear_xlib/../nuklear.h: In function ‘nk_popup_begin’: ../../../../../../include/nuklear_xlib/../nuklear.h:20657:23: warning: potential null pointer dereference [-Wnull-dereference] 20657 | popup->parent = win; | ~~~~~~~~~~~~~~^~~~~ ../../../../../../include/nuklear_xlib/../nuklear.h: In function ‘nk_group_set_scroll’: ../../../../../../include/nuklear_xlib/../nuklear.h:22759:19: warning: potential null pointer dereference [-Wnull-dereference] 22759 | *y_offset_ptr = y_offset; | ~~~~~~~~~~~~~~^~~~~~~~~~ ../../../../../../include/nuklear_xlib/../nuklear.h: In function ‘nk_list_view_begin’: ../../../../../../include/nuklear_xlib/../nuklear.h:22808:26: warning: potential null pointer dereference [-Wnull-dereference] 22808 | view->scroll_value = *y_offset; | ^~~~~~~~~ ../../../../../../include/nuklear_xlib/../nuklear.h:22811:15: warning: potential null pointer dereference [-Wnull-dereference] 22811 | *y_offset = 0; | ~~~~~~~~~~^~~
Thanks for finding. PRs are always more than welcome!
Hi,
I did the tests on linux.