stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3cf052af338934039211e315641a35a9a2cbed1a

commit 3cf052af338934039211e315641a35a9a2cbed1a
Author: Joao Antonio Cardoso <[email protected]>
Date:   Mon Jun 15 12:27:46 2020 +0000

    efl_check.h: Replace stack allocated array by heap allocated
    
    clang-cl doesn't support the syntax of dynamic stack allocated arrays.
    
    ref: windows-native-port
    
    Co-authored-by: Lucas <[email protected]>
    
    Reviewed-by: Felipe Magno de Almeida <[email protected]>
    Reviewed-by: Stefan Schmidt <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D11970
---
 src/tests/efl_check.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/efl_check.h b/src/tests/efl_check.h
index a973250849..20d2203075 100644
--- a/src/tests/efl_check.h
+++ b/src/tests/efl_check.h
@@ -131,7 +131,7 @@ _efl_test_option_disp(int argc, char **argv, const 
Efl_Test_Case *etc)
           }
         else if (strcmp(argv[i], "--valgrind") == 0)
           {
-             const char *nav[argc + 3];
+             const char ** nav = (const char **) alloca(sizeof(char*) * (argc 
+ 3));
              int j, k;
 
              nav[0] = "valgrind";

-- 


Reply via email to