diff options
author | Joao Antonio Cardoso <joao.antonio@expertisesolutions.com.br> | 2020-06-15 12:27:46 +0000 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2020-06-23 17:21:22 +0200 |
commit | 3cf052af338934039211e315641a35a9a2cbed1a (patch) | |
tree | 800a0af254808f9017ab186a1a34d9152f752302 | |
parent | 7308011cff98316cc4329045154e3b5bc7717e6c (diff) | |
download | efl-3cf052af338934039211e315641a35a9a2cbed1a.tar.gz |
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 <Coquinho@users.noreply.github.com>
Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11970
-rw-r--r-- | src/tests/efl_check.h | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |