Skip to content

Commit d32dfe3

Browse files
committed
ci: initialize const max_args_count / max_args_bytes in ctor
Matching half of the const-member additions in webserver.hpp from 2e803ed. gcc 13 (CodeQL on Ubuntu 24.04) refuses to default-construct a const std::size_t member without an initializer; clang/macOS happened to accept the missing initializer silently. Add the two init-list lines in declaration order, between max_thread_stack_size and use_ssl, so the constructor matches the field layout.
1 parent 2e803ed commit d32dfe3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/webserver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ webserver::webserver(const create_webserver& params):
200200
bind_address(params._bind_address),
201201
bind_address_storage(params._bind_address_storage),
202202
max_thread_stack_size(params._max_thread_stack_size),
203+
max_args_count(params._max_args_count),
204+
max_args_bytes(params._max_args_bytes),
203205
use_ssl(params._use_ssl),
204206
use_ipv6(params._use_ipv6),
205207
use_dual_stack(params._use_dual_stack),

0 commit comments

Comments
 (0)