From 011d7f381ce17f2f15d3a3c178971de3728c709f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 24 Aug 2024 10:15:35 +0200 Subject: Silence warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- process.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/process.c b/process.c index eef61f8..9dae6dc 100644 --- a/process.c +++ b/process.c @@ -90,6 +90,11 @@ process_x86_sha256(struct libsha2_state *restrict state, const unsigned char *re abef_orig = s0; cdgh_orig = s1; +#if defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wsign-conversion" +#endif + msg = _mm_loadu_si128((const __m128i *)&chunk[0]); msg0 = _mm_shuffle_epi8(msg, SHUFFLE_MASK); msg = _mm_add_epi32(msg0, _mm_set_epi64x(0xE9B5DBA5B5C0FBCFULL, 0x71374491428A2F98ULL)); @@ -226,6 +231,10 @@ process_x86_sha256(struct libsha2_state *restrict state, const unsigned char *re msg = _mm_shuffle_epi32(msg, 0x0E); s0 = _mm_sha256rnds2_epu32(s0, s1, msg); +#if defined(__GNUC__) +# pragma GCC diagnostic pop +#endif + s0 = _mm_add_epi32(s0, abef_orig); s1 = _mm_add_epi32(s1, cdgh_orig); } -- cgit v1.2.3-70-g09d2