Fix unused variable warning on macOS + ASan

On non-ELF platforms, WEAK_SYMBOL_FUNC expands to a static variable. On
ASan, we don't use sdallocx. Clang then warns about an unused static
variable. Silence the warning.

Change-Id: I3d53519b669d435f3801f45e4b72c6ca4cd27a3b
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/53565
Reviewed-by: Bob Beck <bbe@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
Commit-Queue: Bob Beck <bbe@google.com>
diff --git a/crypto/mem.c b/crypto/mem.c
index 15d3436..fde1b30 100644
--- a/crypto/mem.c
+++ b/crypto/mem.c
@@ -183,6 +183,7 @@
 
 // ASan knows to intercept malloc and free, but not sdallocx.
 #if defined(OPENSSL_ASAN)
+  (void)sdallocx;
   free(ptr);
 #else
   if (sdallocx) {