gwenhael-le-moine / x48

HP48 calculator emulator (mirror of sourceforge's mirror of berlios)
GNU General Public License v2.0
38 stars 17 forks source link

fixed clang error "debugger.c:1031:3: error: non-void function 'get_stack' should return a value" #8

Closed azimonti closed 10 months ago

azimonti commented 10 months ago
debugger.c:1031:3: error: non-void function 'get_stack' should return a value [-Wreturn-type]
1031 | return;
| ^
2 warnings and 1 error generated.
make[2]: *** [debugger.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Fixed compilation error with clang

clang --version

Homebrew clang version 17.0.6
Target: x86_64-apple-darwin23.2.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin
gwenhael-le-moine commented 10 months ago

Thank you. I fixed it in x48ng but forgot to backport the change here.