Move -Waggregate-return suppression inside verstable.h

This commit is contained in:
indev committed 2026-02-24 17:54:07 +03:00
1 parent 86e7cd85e0
commit e05ce8202d
2 files changed
+5 -5

No files matched your search

+5
View File
@@ -452,6 +452,9 @@ License (MIT):
#ifndef VERSTABLE_H
#define VERSTABLE_H
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waggregate-return"
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
@@ -2093,6 +2096,8 @@ C99 prefixed function API to circumvent this restriction.
#endif
#endif
#pragma GCC diagnostic pop
#endif
#undef NAME
-5
View File
@@ -90,9 +90,6 @@ typedef struct
#define LUMPNUMCACHESIZE 2048 // should be reasonable ig
#define LUMPNUMCACHENAME 32
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waggregate-return"
#define NAME lumpnum_map
#define KEY_TY char *
#define KEY_GET_CONST
@@ -111,8 +108,6 @@ typedef struct
#define KEY_DTOR_FN free
#include "verstable.h"
#pragma GCC diagnostic pop
static lumpnum_map lumpnumcache;
typedef struct FolderCache {