#+ignore unused-imports with -vet -strict-style -vet-tabs -disallow-do -warnings-as-errors

Is this a bug?
If I add the following to the top of my project file…

#+ignore unused-imports

Then build with

odin build . -vet -strict-style -vet-tabs -disallow-do -warnings-as-errors

I get

(1:1) Error: Undefined entry point procedure 'main' 
        ( empty line )

But main is defined. Is there an attribute that I need to add to main for the above combination to not produce an error?

You want #+vet !unused-imports

1 Like

Haazzaa, thank you!!

For reference, #+ignore means “don’t include this file in builds”. Anything else on the line isn’t used.

2 Likes