only declare variable when required

This commit is contained in:
Arne Morten Kvarving
2021-08-24 09:05:21 +02:00
parent add60560ee
commit 2d20087f17

View File

@@ -48,7 +48,9 @@ static void printHelp() {
int main(int argc, char **argv) {
int c = 0;
int max_threads [[maybe_unused]] = -1;
#ifdef _OPENMP
int max_threads = -1;
#endif
bool force = false;
while ((c = getopt(argc, argv, "fn:h")) != -1) {