diff options
author | Mike Hommey <mh@glandium.org> | 2022-10-19 04:14:16 +0000 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2022-10-19 04:14:16 +0000 |
commit | d4056803576284586929b1bfebc58c338c2b33f1 (patch) | |
tree | 760634c722f11480c0cbaca49ef21f26ce99f745 /lib/util/verref.h | |
parent | 142a7e8e7101daad3c3c67cb75ababe4f08b7bea (diff) | |
download | nss-hg-d4056803576284586929b1bfebc58c338c2b33f1.tar.gz |
Bug 1795222 - Mark _nss_version_c unused on clang-cl. r=nss-reviewers,jschanck
clang-cl, while it defines _MSC_VER, doesn't handle the pragma disable
in a way that makes the unused-variable warning go, and it doesn't
define __GNUC__.
Differential Revision: https://phabricator.services.mozilla.com/D159367
Diffstat (limited to 'lib/util/verref.h')
-rw-r--r-- | lib/util/verref.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/verref.h b/lib/util/verref.h index efbcb031c..a7d5280e2 100644 --- a/lib/util/verref.h +++ b/lib/util/verref.h @@ -28,7 +28,7 @@ #endif { extern const char NSS_VERSION_VARIABLE[]; -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) __attribute__((unused)) #endif volatile const char _nss_version_c = NSS_VERSION_VARIABLE[0]; |