From: Konstantinos Margaritis Date: Wed, 4 Oct 2023 07:16:12 +0000 (+0000) Subject: fix -Wunused warnings on debug X-Git-Tag: vectorscan/5.4.11~2^2~5^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d3e7eb30a3db825de50df3faae35200a050540;p=thirdparty%2Fvectorscan.git fix -Wunused warnings on debug --- 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