From 4e7b082ccc44316f212597ae5b09a35cf9329e69 Mon Sep 17 00:00:00 2001 From: CK Tan Date: Mon, 4 Apr 2022 11:28:49 -0700 Subject: [PATCH] removed pragma that caused warning on gcc --- toml.c | 1 - 1 file changed, 1 deletion(-) diff --git a/toml.c b/toml.c index 1deaac2..fafe0da 100644 --- a/toml.c +++ b/toml.c @@ -1496,7 +1496,6 @@ toml_table_t *toml_parse_file(FILE *fp, char *errbuf, int errbufsz) { int n = fread(buf + off, 1, bufsz - off, fp); if (ferror(fp)) { snprintf(errbuf, errbufsz, "%s", - #pragma warning(suppress : 4996) errno ? strerror(errno) : "Error reading file"); xfree(buf); return 0;