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;
case GL_NO_ERROR:
return true;
break;
default:
SSNES_ERR("Non specified error :v\n");
}

View File

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