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