[sanitizer] Suppress unused function warning
authorVitaly Buka <vitalybuka@google.com>
Mon, 18 Jun 2018 05:55:44 +0000 (05:55 +0000)
committerVitaly Buka <vitalybuka@google.com>
Mon, 18 Jun 2018 05:55:44 +0000 (05:55 +0000)
llvm-svn: 334923

compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc

index 6a6a341..1c7fb7d 100644 (file)
@@ -157,7 +157,8 @@ bool SetEnv(const char *name, const char *value) {
 }
 #endif
 
-static bool GetLibcVersion(int *major, int *minor, int *patch) {
+__attribute__((unused)) static bool GetLibcVersion(int *major, int *minor,
+                                                   int *patch) {
 #ifdef _CS_GNU_LIBC_VERSION
   char buf[64];
   uptr len = confstr(_CS_GNU_LIBC_VERSION, buf, sizeof(buf));