. codeset.c is not compiled when using --without-icu, so we shouldn't
reference symbols implemented in that file in that case.
. gcc 4.3.2 complains about calling Panic() with a non-const format string.
. Ubuntu 9.10 complains about ignoring the return value of chdir.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
msg = Str_SafeVasprintf(NULL, fmt, ap);
va_end(ap);
- Panic(msg);
+ Panic("%s", msg);
}
if (xRef[idx].isSupported) {
return xRef[idx].encoding;
}
-#if defined(VMX86_TOOLS)
+#if defined(VMX86_TOOLS) && (!defined(OPEN_VM_TOOLS) || defined(USE_ICU))
if (idx == UnicodeIANALookup(CodeSet_GetCurrentCodeSet())) {
CodeSet_DontUseIcu();
return xRef[idx].encoding;
*/
const char *home = getenv("HOME");
if (home != NULL) {
- chdir(home);
+ if (chdir(home)) {
+ /* Just to make glibc headers happy. */
+ }
}
}
}