Cleanup: quiet GCC warning for pointer subtraction

Ref !144032
This commit is contained in:
Campbell Barton
2025-08-06 20:31:14 +00:00
parent a229d0d08f
commit 77d6960d24

View File

@@ -103,6 +103,10 @@ void MD5Hash::process(const uint8_t *data /*[64]*/)
static const int w = 1;
if (*((const uint8_t *)&w)) /* dynamic little-endian */ {
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wnull-pointer-subtraction"
#endif
/*
* On little-endian machines, we can process properly aligned
* data without copying it.
@@ -116,6 +120,9 @@ void MD5Hash::process(const uint8_t *data /*[64]*/)
memcpy(xbuf, data, 64);
X = xbuf;
}
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
}
else { /* dynamic big-endian */
/*