[sanitizer] Suppress unused function warning

llvm-svn: 334923
This commit is contained in:
Vitaly Buka 2018-06-18 05:55:44 +00:00
parent 16fdde5e63
commit 7fd0d388e0

View 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));