BBS:      TELESC.NET.BR
Assunto:  src/ssh/deucessh-comp.h deucessh-enc.h deucessh-kex.h deucessh-key-alg
De:       Deuc¨
Data:     Sun, 26 Apr 2026 18:25:41 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/fe0394d0b491ba50ea310950
Modified Files:
	src/ssh/deucessh-comp.h deucessh-enc.h deucessh-kex.h deucessh-key-algo.h deucessh-lang.h deucessh-mac.h src/ssh/docs/audit-rules.md
Log Message:
DeuceSSH: drop static_assert(!offsetof(...))  not valid C17

ISO C does not classify offsetof()'s standard expansion
((size_t)&(((T*)0)->m)) as a constant expression, so MSVC in C
mode rejects it inside static_assert (error C2057).  GCC/Clang
accept it as an extension.

Remove the six "next must be at offset 0" assertions from the
module headers and the now-unused  includes.  The "must
be first" comment on each next field stays as documentation, and
the generic-traversal paths are exercised by the test suite.

Also drop the audit-rules.md bullet that referenced the assertion.

Co-Authored-By: Claude Opus 4.7 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]