mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix a bunch of -Wempty-body warnings reported by clang
Many of these were real bugs, like: if (cond); do_something etc... Others were just cosmetic - like placing the ';' on a separate line to make the intention clear.
This commit is contained in:
parent
18e25ce273
commit
dda11f0e38
11 changed files with 28 additions and 18 deletions
|
|
@ -705,9 +705,10 @@ ScanNLSDir(char *dirname)
|
|||
continue;
|
||||
|
||||
if (locale[0] != '.' &&
|
||||
LANGLISTSIZE > (int) (strlen(languageList)+strlen(locale)+2));
|
||||
LANGLISTSIZE > (int) (strlen(languageList)+strlen(locale)+2))
|
||||
{
|
||||
(void) sprintf(locale_path, "%s/%s", dirname, locale);
|
||||
(void) snprintf(locale_path, MAXPATHLEN, "%s/%s",
|
||||
dirname, locale);
|
||||
retval = stat(locale_path, &locale_stat);
|
||||
|
||||
if (0 == retval && S_ISDIR(locale_stat.st_mode))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue