removed pragma that caused warning on gcc

This commit is contained in:
CK Tan 2022-04-04 11:28:49 -07:00
parent 8a863d1ec8
commit 4e7b082ccc

1
toml.c
View file

@ -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); int n = fread(buf + off, 1, bufsz - off, fp);
if (ferror(fp)) { if (ferror(fp)) {
snprintf(errbuf, errbufsz, "%s", snprintf(errbuf, errbufsz, "%s",
#pragma warning(suppress : 4996)
errno ? strerror(errno) : "Error reading file"); errno ? strerror(errno) : "Error reading file");
xfree(buf); xfree(buf);
return 0; return 0;