0
0
Fork 0
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:
Jason Volk 2016-06-23 16:33:35 -07:00
parent c7529ba5bf
commit 14cd76b435

View file

@ -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
{