]
Michal Karm Babacek updated MODCLUSTER-590:
-------------------------------------------
Tester: Michal Karm Babacek
mod_proxy_cluster.c:2203 does not compile with MSVC 19.0.24213.1
----------------------------------------------------------------
Key: MODCLUSTER-590
URL:
https://issues.jboss.org/browse/MODCLUSTER-590
Project: mod_cluster
Issue Type: Bug
Components: Native (httpd modules)
Affects Versions: 2.0.0.Alpha1
Reporter: Michal Karm Babacek
Assignee: Michal Karm Babacek
Priority: Blocker
Fix For: 2.0.0.Alpha1
{code}
1>C:\httpd\mod_proxy_cluster\native\mod_proxy_cluster\mod_proxy_cluster.c(2203): error
C2057: expected constant expression
1>C:\httpd\mod_proxy_cluster\native\mod_proxy_cluster\mod_proxy_cluster.c(2203): error
C2466: cannot allocate an array of constant size 0
1>C:\httpd\mod_proxy_cluster\native\mod_proxy_cluster\mod_proxy_cluster.c(2203): error
C2133: 'workers': unknown size
{code}
Really, this size should be known at compile time.
{code}
2202 // Create a separate array of available workers, to be sorted later
2203 proxy_worker *workers[balancer->workers->nelts];
2204 int workers_length = 0;
{code}
Source:
[
mod_proxy_cluster.c#L2203|https://github.com/modcluster/mod_proxy_cluster...]