mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 16:46:50 +01:00
librb: Suppress a ubiquitous strict-prototypes warning with anecdote.
This commit is contained in:
parent
c7529ba5bf
commit
14cd76b435
1 changed files with 5 additions and 0 deletions
|
@ -33,7 +33,12 @@ typedef struct rb_dictionary_iter rb_dictionary_iter;
|
|||
|
||||
struct rb_dictionary;
|
||||
|
||||
// This comparator could be based on a union of function types emulating a
|
||||
// quasi-template, shutting up a lot of warnings. For now it gets The Treatment.
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
|
||||
typedef int (*DCF)(/* const void *a, const void *b */);
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
struct rb_dictionary_element
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue