Make the warning about checking ERR_GET_REASON even louder

Change-Id: I64d2e999d620b4235ec884b5f1ac9d951d525030
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/106369
Commit-Queue: Xiangfei Ding <xfding@google.com>
Reviewed-by: Xiangfei Ding <xfding@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
Presubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/include/openssl/err.h b/include/openssl/err.h
index 7b94af4..2d267bf 100644
--- a/include/openssl/err.h
+++ b/include/openssl/err.h
@@ -55,7 +55,11 @@
 
 // ERR_GET_REASON returns the reason code for the error. This is one of
 // library-specific `LIB_R_*` values where `LIB` is the library (see
-// `ERR_GET_LIB`). Note that reason codes are specific to the library.
+// `ERR_GET_LIB`).
+//
+// WARNING: reason codes are specific to the library code and cannot be checked
+// on their own. Check the pair of `ERR_GET_LIB` and `ERR_GET_REASON`, or use
+// the `ERR_equals` helper.
 OPENSSL_INLINE int ERR_GET_REASON(uint32_t packed_error) {
   return (int)(packed_error & 0xfff);
 }