Display warning only if gui is not used

This commit is contained in:
Miodrag Milanovic 2018-08-01 08:26:50 +02:00
parent 8293569c32
commit 009bed51cb

View File

@ -375,6 +375,9 @@ int main(int argc, char *argv[])
ctx->target_freq = vm["freq"].as<double>() * 1e6;
ctx->user_freq = true;
} else {
#ifndef NO_GUI
if (!vm.count("gui"))
#endif
log_warning("Target frequency not specified. Will optimise for max frequency.\n");
}