vrischmann / zig-sqlite

zig-sqlite is a small wrapper around sqlite's C API, making it easier to use with Zig.
MIT License
367 stars 49 forks source link

Patch for the new 0.12.0-dev.1664+8ca4a5240 version that points out local variables which aren't mutated #142

Closed Krvopije closed 11 months ago

Krvopije commented 11 months ago

Description

The compiler now seems to point out local variables that should be defined as const instead of var or comptime var as they aren't mutated in the program.

Checklist

I didn't add any tests, but pointed a program of mine which uses zig-sqlite to this fork/patched branch of mine and it now compiles again.

vrischmann commented 11 months ago

Thanks !