diff options
author | Brad King <brad.king@kitware.com> | 2003-06-25 13:32:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-25 13:32:38 (GMT) |
commit | a778cd0f3df4a0fad4d352356793d0beb21c4ece (patch) | |
tree | 2209dfa9cd494a57805db1466df9ad95f9be2dbb | |
parent | 915972ff446f29d587373b9c858fd8ad811b4216 (diff) | |
download | CMake-a778cd0f3df4a0fad4d352356793d0beb21c4ece.zip CMake-a778cd0f3df4a0fad4d352356793d0beb21c4ece.tar.gz CMake-a778cd0f3df4a0fad4d352356793d0beb21c4ece.tar.bz2 |
ERR: Fixed use of non-constant initializer.
-rw-r--r-- | Source/kwsys/testProcess.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c index ae3410a..c569528 100644 --- a/Source/kwsys/testProcess.c +++ b/Source/kwsys/testProcess.c @@ -166,7 +166,11 @@ int main(int argc, const char* argv[]) int exceptions[4] = {kwsysProcess_Exception_None, kwsysProcess_Exception_None, kwsysProcess_Exception_None, kwsysProcess_Exception_Fault}; int values[4] = {0, 123, 1, 1}; - const char* cmd[] = {argv[0], "run", argv[1], 0}; + const char* cmd[4]; + cmd[0] = argv[0]; + cmd[1] = "run"; + cmd[2] = argv[1]; + cmd[3] = 0; return runChild(cmd, states[n-1], exceptions[n-1], values[n-1]); } else |