diff --git a/src/dispatcher.c b/src/dispatcher.c index 775002f6..a817e744 100644 --- a/src/dispatcher.c +++ b/src/dispatcher.c @@ -117,6 +117,11 @@ RTYPE NAME(__VA_ARGS__) __attribute__((ifunc("resolve_" #NAME))) #endif + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-function" CREATE_DISPATCH(hs_error_t, hs_scan, const hs_database_t *db, const char *data, unsigned length, unsigned flags, hs_scratch_t *scratch, match_event_handler onEvent, void *userCtx); @@ -185,3 +190,6 @@ CREATE_DISPATCH(hs_error_t, hs_reset_and_expand_stream, hs_stream_t *to_stream, /** INTERNALS **/ CREATE_DISPATCH(u32, Crc32c_ComputeBuf, u32 inCrc32, const void *buf, size_t bufLen); + +#pragma GCC diagnostic pop +#pragma GCC diagnostic pop