ECP-VeloC / VELOC

Very-Low Overhead Checkpointing System
http://veloc.rtfd.io
MIT License
52 stars 21 forks source link

Change VELOC_MAX_NAME from size_t to a macro? #3

Closed adammoody closed 5 years ago

adammoody commented 5 years ago

With VELOC_MAX_NAME in veloc.h defined as a size_t variable rather than a #define, I'm getting the following error when trying to declare an array.

[100%] Building C object src/CMakeFiles/scr_o.dir/scr2veloc.c.o
/usr/workspace/wsb/moody20/projects/scr2veloc/src/scr2veloc.c:24:13: error: variably modified 'current_name' at file scope
 static char current_name[VELOC_MAX_NAME] = "";
             ^~~~~~~~~~~~
bnicolae commented 5 years ago

Switched from const to define. This should fix it.