From: Oliver Kurth Date: Fri, 15 Sep 2017 18:22:49 +0000 (-0700) Subject: Fix unused function errors thrown by clang 3.4 X-Git-Tag: stable-10.2.0~664 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=256d7b2ef23dcb8b5eda287f353a877b2bea17ce;p=thirdparty%2Fopen-vm-tools.git Fix unused function errors thrown by clang 3.4 --- diff --git a/open-vm-tools/lib/misc/strutil.c b/open-vm-tools/lib/misc/strutil.c index 516f96c2c..d00e560f5 100644 --- a/open-vm-tools/lib/misc/strutil.c +++ b/open-vm-tools/lib/misc/strutil.c @@ -53,13 +53,14 @@ *----------------------------------------------------------------------------- */ +#ifdef VMX86_DEBUG static INLINE Bool StrUtil_IsEmpty(const char *str) // IN: { ASSERT(str != NULL); return str[0] == '\0'; } - +#endif /* *----------------------------------------------------------------------------- diff --git a/open-vm-tools/lib/misc/vthreadBase.c b/open-vm-tools/lib/misc/vthreadBase.c index a26fef91f..7b4c4d01a 100644 --- a/open-vm-tools/lib/misc/vthreadBase.c +++ b/open-vm-tools/lib/misc/vthreadBase.c @@ -267,14 +267,14 @@ VThreadBaseInitKeys(void) VThreadBaseInitKeyWork(&vthreadBaseGlobals.threadIDKey, NULL); } - +#ifdef VMX86_DEBUG static INLINE Bool VThreadBaseAreKeysInited(void) { return Atomic_Read(&vthreadBaseGlobals.baseKey) != VTHREADBASE_INVALID_KEY && Atomic_Read(&vthreadBaseGlobals.threadIDKey) != VTHREADBASE_INVALID_KEY; } - +#endif /* *----------------------------------------------------------------------------- diff --git a/open-vm-tools/libvmtools/i18n.c b/open-vm-tools/libvmtools/i18n.c index d8c9a8758..e4803ab6b 100644 --- a/open-vm-tools/libvmtools/i18n.c +++ b/open-vm-tools/libvmtools/i18n.c @@ -105,6 +105,7 @@ MsgCatalogFree(MsgCatalog *catalog) ****************************************************************************** */ +#ifdef VMX86_DEBUG static INLINE gboolean MsgHasMsgID(const gchar *s) { @@ -112,7 +113,7 @@ MsgHasMsgID(const gchar *s) *(s += MSG_MAGIC_LEN) == '(' && strchr(s + 1, ')') != NULL; } - +#endif /* ******************************************************************************