patrickcjk/imgui-notify

C4703 potentially uninitialized local pointer variable 'icon' used

irizkyw opened this issue · 5 comments

compiling failure cause in imgui_notify.h
image

how to fix it?

NOTIFY_INLINE auto get_icon() -> const char*

NOTIFY_INLINE auto get_icon() -> const char* is already used but I'm calling function ImGui::RenderNotifications(); in main.cpp still getting the same error

image

zoixe commented

NOTIFY_INLINE auto get_icon() -> const char*

did you solve this error ?

nope sir

ChatGPT Helps me just add
#pragma warning(disable: 4703) #pragma warning(default: 4703)