зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1236389 - Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in mozapps/update. r=rstrong
toolkit/mozapps/update/updater/updater.cpp:3722:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels toolkit/mozapps/update/updater/updater.cpp:3768:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
This commit is contained in:
Родитель
30e31900cf
Коммит
f887951ac3
|
@ -3721,6 +3721,7 @@ int add_dir_entries(const NS_tchar *dirpath, ActionList *list)
|
|||
LOG(("add_dir_entries: found a non-standard file: " LOG_S,
|
||||
ftsdirEntry->fts_path));
|
||||
// Fall through and try to remove as a file
|
||||
MOZ_FALLTHROUGH;
|
||||
|
||||
// Files
|
||||
case FTS_F:
|
||||
|
@ -3767,7 +3768,7 @@ int add_dir_entries(const NS_tchar *dirpath, ActionList *list)
|
|||
rv = OK;
|
||||
break;
|
||||
}
|
||||
// Fall through
|
||||
MOZ_FALLTHROUGH;
|
||||
|
||||
case FTS_ERR:
|
||||
rv = UNEXPECTED_FILE_OPERATION_ERROR;
|
||||
|
|
Загрузка…
Ссылка в новой задаче