Fix some static analyzer warnings.

This commit is contained in:
Themaister 2012-02-27 17:29:59 +01:00
parent 302dc9460f
commit b50ddfc87a
2 changed files with 1 additions and 4 deletions

View File

@ -62,7 +62,6 @@ static inline bool gl_check_error(void)
break; break;
case GL_NO_ERROR: case GL_NO_ERROR:
return true; return true;
break;
default: default:
SSNES_ERR("Non specified error :v\n"); SSNES_ERR("Non specified error :v\n");
} }

View File

@ -272,9 +272,7 @@ static config_file_t *open_default_config_file(void)
} }
if (!conf) if (!conf)
conf = config_file_new("/etc/ssnes.cfg"); conf = config_file_new("/etc/ssnes.cfg");
#elif defined(__CELLOS_LV2__) || defined(_XBOX) #elif !defined(__CELLOS_LV2__) && !defined(_XBOX)
return NULL;
#else
const char *xdg = getenv("XDG_CONFIG_HOME"); const char *xdg = getenv("XDG_CONFIG_HOME");
if (!xdg) if (!xdg)
SSNES_WARN("XDG_CONFIG_HOME is not defined. Will look for config in $HOME/.ssnes.cfg ...\n"); SSNES_WARN("XDG_CONFIG_HOME is not defined. Will look for config in $HOME/.ssnes.cfg ...\n");