-
-
Notifications
You must be signed in to change notification settings - Fork 868
Open
Description
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Odin: dev-2025-12
OS: Debian GNU/Linux forky/sid, Linux 6.17.8-300.fc43.x86_64
CPU: AMD Ryzen 7 5800X3D 8-Core Processor
RAM: 32004 MiB
Backend: LLVM 19.1.7
The following code snippet illustrates the issue:
package main
main :: proc() {
x: int
}- If we run
odin check .on this, orodin build, this builds just fine. - If we run
odin check . -vet, it errors, with'x' declared but not usedas expected. - If we add any
#+vetto the top of the file, the error is ignored:
#+vet cast
package main
main :: proc() {
x: int
}odin check . -vet and odin build -vet show no error and build just fine, even though it should error.
The main case where this is an issue is #+vet explicit-allocators, which must be a file flag. So it effectively means that #+vet explicit-allocators disables every other form of vetting.
Metadata
Metadata
Assignees
Labels
No labels