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:
Chris Peterson 2016-01-01 17:04:00 -07:00
parent 30e31900cf
commit f887951ac3

View File

@ -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;