gcc fixes.

This commit is contained in:
Kelvin Sherlock 2019-12-13 23:54:40 -05:00
parent 6024ff6436
commit 3c6be110b1

View File

@ -13,6 +13,7 @@
#include <cerrno>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <err.h>
@ -804,7 +805,7 @@ void process_script(const char *path) {
try {
parse_line(line);
} catch (std::exception &ex) {
if (~active & 0x01) continue;
if (!active) continue;
fprintf(stderr, "%s in line: %d\n", ex.what(), no);
fprintf(stderr, "%s\n", line);