fix iso c++ warning on const char*

This commit is contained in:
Fabian Posch 2024-01-16 17:10:41 -05:00
parent 68d5c142c2
commit a3d329cdd5

View file

@ -262,7 +262,8 @@ std::unique_ptr<OutputType> Worker::perform_task(std::unique_ptr<InputType>& tas
// I warned you about the syscall handling. A lot of error checks...
// build the execution vector
char* const argv[] = {"${ACT_HOME}/bin/actsim", design_char, top_proc_char};
char bin[] = "${ACT_HOME}/bin/actsim";
char* const argv[] = {bin, design_char, top_proc_char};
// and call actsim
execv(argv[0], argv);