diff options
author | jbj <devnull@localhost> | 1999-10-21 20:36:16 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-10-21 20:36:16 +0000 |
commit | bd34f27bb4617a172b1fee3be70b040e041858a1 (patch) | |
tree | 23af919ca601a477ebba4a0672a3b7d2770528f9 /rpm.c | |
parent | c8b83b08c57667fe92ad68a76eba9dff8abd031e (diff) | |
download | rpm-bd34f27bb4617a172b1fee3be70b040e041858a1.tar.gz rpm-bd34f27bb4617a172b1fee3be70b040e041858a1.tar.bz2 rpm-bd34f27bb4617a172b1fee3be70b040e041858a1.zip |
lclint annotations and compiler cruft.
CVS patchset: 3394
CVS date: 1999/10/21 20:36:16
Diffstat (limited to 'rpm.c')
-rwxr-xr-x | rpm.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1082,7 +1082,7 @@ int main(int argc, char ** argv) !rpmDetectPGPVersion(NULL)) { fprintf(stderr, _("pgp not found: ")); exit(EXIT_FAILURE); - } /* fall through */ + } /*@fallthrough@*/ case RPMSIGTAG_GPG: passPhrase = rpmGetPassPhrase(_("Enter pass phrase: "), sigTag); if (passPhrase == NULL) { @@ -1096,7 +1096,7 @@ int main(int argc, char ** argv) fprintf(stderr, _("Invalid %%_signature spec in macro file.\n")); exit(EXIT_FAILURE); - break; + /*@notreached@*/ break; } } } else { @@ -1153,7 +1153,7 @@ int main(int argc, char ** argv) /* XXX don't overflow single byte exit status */ if (ec > 255) ec = 255; exit(ec); - break; + /*@notreached@*/ break; case MODE_RESIGN: if (!poptPeekArg(optCon)) @@ -1162,7 +1162,7 @@ int main(int argc, char ** argv) /* XXX don't overflow single byte exit status */ if (ec > 255) ec = 255; exit(ec); - break; + /*@notreached@*/ break; case MODE_REBUILD: case MODE_RECOMPILE: @@ -1202,17 +1202,21 @@ int main(int argc, char ** argv) /* these fallthroughs are intentional */ case 'a': buildArgs.buildAmount |= RPMBUILD_PACKAGESOURCE; + /*@fallthrough@*/ case 'b': buildArgs.buildAmount |= RPMBUILD_PACKAGEBINARY; buildArgs.buildAmount |= RPMBUILD_CLEAN; + /*@fallthrough@*/ case 'i': buildArgs.buildAmount |= RPMBUILD_INSTALL; if ((buildArgs.buildChar == 'i') && buildArgs.shortCircuit) break; + /*@fallthrough@*/ case 'c': buildArgs.buildAmount |= RPMBUILD_BUILD; if ((buildArgs.buildChar == 'c') && buildArgs.shortCircuit) break; + /*@fallthrough@*/ case 'p': buildArgs.buildAmount |= RPMBUILD_PREP; break; |