This is an automated email from the ASF dual-hosted git repository. astitcher pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/master by this push: new be50dbf PROTON-2340: Another small fix to raw_echo for Visual Studio C compilers be50dbf is described below commit be50dbf02766baca1e53987c8dc4ae45e9be5908 Author: Andrew Stitcher <astitc...@apache.org> AuthorDate: Wed Mar 10 22:32:18 2021 -0500 PROTON-2340: Another small fix to raw_echo for Visual Studio C compilers This avoids C99 VLAs and the gnu/clang extension that imitates them. --- c/examples/raw_echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/examples/raw_echo.c b/c/examples/raw_echo.c index aaea76f..187dba7 100644 --- a/c/examples/raw_echo.c +++ b/c/examples/raw_echo.c @@ -375,7 +375,7 @@ int main(int argc, char **argv) { pn_proactor_listen(app.proactor, app.listener, addr, 16); size_t thread_count = 3; - pthread_t threads[thread_count]; + pthread_t* threads = (pthread_t*)calloc(sizeof(pthread_t), thread_count); int n; for (n=0; n<thread_count; n++) { int rc = pthread_create(&threads[n], 0, run, (void*)&app); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org