This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Commit c69b447
committed
fix: DC table initializers put port 443 into ipv6 field, add -Werror CI
The struct dc_address gained an ipv6[16] field between ipv4 and port,
but the positional initializers { 1, 0, 443 } were not updated — 443
went into ipv6[0] (unsigned char, truncated to 187) instead of port.
Switch to designated initializers (.dc_id, .port) to prevent this
class of bug.
Add a build-werror CI job that compiles with -Werror to catch compiler
warnings before they reach releases. The main Makefile keeps -Wall
without -Werror so end-user builds aren't broken by compiler differences.1 parent b845aeb commit c69b447
2 files changed
+23
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
14 | 29 | | |
15 | 30 | | |
16 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments