fix: Final Zig 0.15.2 syntax fixes

- duckdb.zig: Remove enum values (use default)
- png.zig: Mark unused bimodal params with _:
- transport_skins.zig: Mark probe params with _:

Refs: RFC-0015
This commit is contained in:
Markus Maiwald 2026-02-03 17:42:20 +01:00
parent 924b330396
commit 44b37bc231
3 changed files with 6 additions and 10 deletions

View File

@ -179,7 +179,7 @@ pub const PngState = struct {
return scale / std.math.pow(f64, u, 1.0 / shape);
}
fn sampleBimodal(self: *Self, mean: f64, stddev: f64) f64 {
fn sampleBimodal(self: *Self, _: f64, _: f64) f64 {
// Two modes: small (600) and large (1440), ratio 1:3
if (self.nextF64() < 0.25) {
// Small mode around 600 bytes

View File

@ -362,16 +362,12 @@ pub const SkinProber = struct {
});
}
fn probeRaw(self: SkinProber, timeout_ms: u32) !bool {
_ = self;
_ = timeout_ms;
fn probeRaw(_: SkinProber, _: u32) !bool {
// TODO: Implement UDP probe
return false;
}
fn probeHttps(self: SkinProber, timeout_ms: u32) !bool {
_ = self;
_ = timeout_ms;
fn probeHttps(_: SkinProber, _: u32) !bool {
// TODO: Implement HTTPS probe
return true; // Assume HTTPS works for now
}

View File

@ -16,9 +16,9 @@ pub const Result = opaque {};
pub const Appender = opaque {};
/// State types
pub const State = enum(u32) {
success = 0,
error = 1,
pub const State = enum {
success,
error,
};
/// C API Functions