No warning when not using functions from imported module.
Describe the bug
V gives you a warning when you import a module, but don't use it. I found a reproducible bug, that doesn't give you a warning.
Expected Behavior
Expected a warning saying math module was imported, but never used.
Current Behavior
Compiles with no warnings.
Reproduction Steps
import math { sin, cos }
fn main() {
println('no warning')
}
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.3.3 b7b6c23
Environment details (OS name and version, etc.)
V 0.3.3 b7b6c23 PS C:\Users\imado> v doctor OS: windows, Microsoft Windows 11 Pro v22621 64-bit Processor: 16 cpus, 64bit, little endian, CC version: Error: exec failed (CreateProcess) with code 2: The system cannot find the file specified. cmd: cc --version
getwd: C:\Users\imado vmodules: C:\Users\imado.vmodules vroot: C:\Users\imado\v vexe: C:\Users\imado\v\v.exe vexe mtime: 2023-02-28 03:35:39 is vroot writable: true is vmodules writable: true V full version: V 0.3.3 b7b6c23
Git version: git version 2.33.1.windows.1 Git vroot status: weekly.2023.09-4-gb7b6c236 .git/config present: true thirdparty/tcc status: thirdparty-windows-amd64 1e6e7c6f