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 changed files with 0 additions and 1 deletions

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