mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
30e31900cf
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user