]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix unused function errors thrown by clang 3.4
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:22:49 +0000 (11:22 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:22:49 +0000 (11:22 -0700)
open-vm-tools/lib/misc/strutil.c
open-vm-tools/lib/misc/vthreadBase.c
open-vm-tools/libvmtools/i18n.c

index 516f96c2c2088456376ffbf0077d8df45a71b47a..d00e560f5f3679509d06b0f14dcbfe1b38727017 100644 (file)
  *-----------------------------------------------------------------------------
  */
 
+#ifdef VMX86_DEBUG
 static INLINE Bool
 StrUtil_IsEmpty(const char *str)  // IN:
 {
    ASSERT(str != NULL);
    return str[0] == '\0';
 }
-
+#endif
 
 /*
  *-----------------------------------------------------------------------------
index a26fef91f7c14ed445e86a35e9951b4bcdd3187e..7b4c4d01a10c64e0950bc5aa4a7c3b9c184c925b 100644 (file)
@@ -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
 
 /*
  *-----------------------------------------------------------------------------
index d8c9a8758c3470d33e745404c1b11aae380412cc..e4803ab6bac1b686b6e7883e25e2d1a7f3205aea 100644 (file)
@@ -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
 
 /*
  ******************************************************************************