ngs-lang / ngs

Next Generation Shell (NGS)
https://ngs-lang.org/
GNU General Public License v3.0
1.4k stars 43 forks source link

malloc.c:71:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] #663

Open ryandesign opened 2 weeks ago

ryandesign commented 2 weeks ago

Building ngs 0.2.16 I see this warning:

malloc.c:71:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
1 warning generated.
ilyash-b commented 2 weeks ago

Which platform and compiler?

One of the control paths in ngs_realloc() ends with assert(0 == "Realloc not implemented for NGS_STD_MALLOC_AFTER_FORK"). I can try to fix the warning when I'll be able to reproduce it. I don't see this issue on my machine and several outputs of GH actions that I looked at.

ryandesign commented 2 weeks ago

macOS, clang