You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ nelua -C -i 'require("modcheck")'
warning: using error handling module, it is highly experimental and incomplete!
/home/jfondren/.cache/nelua/eval_2jNUNGZEoYm.c: In function ‘nelua_require_modcheck’:
/home/jfondren/.cache/nelua/eval_2jNUNGZEoYm.c:2205:23: warning: excess elements in struct initializer
2205 | return (nltype){0};
| ^
/home/jfondren/.cache/nelua/eval_2jNUNGZEoYm.c:2205:23: note: (near initialization for ‘(anonymous)’)
Bug description
This is a warning with gcc, and an error with tcc. I found it naturally while using nester to test a module that used utf8.codepoint()
Code example
with modcheck.nelua:
You can observe the error with:
Where the larger context is
Environment
x86_64 linux
Nelua 0.2.0-dev
Build number: 1588
Git date: 2023-09-16 16:20:44 -0300
Git hash: 596fcca
Semantic version: 0.2.0-dev.1588+596fcca5
Copyright (C) 2019-2022 Eduardo Bart (https://nelua.io/)
The text was updated successfully, but these errors were encountered: