Remove leftover trap for RPMRC_FAIL errors where none should be seen
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 28 Sep 2010 19:35:10 +0000 (22:35 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 28 Sep 2010 19:35:10 +0000 (22:35 +0300)
- Been 2.5 years now without seeing that trap trigger, should be safe
  to remove now ... to silence a warning about comparing to non-existent
  enumeration value.

build/parseSpec.c

index 98aa3fa..fd81bfa 100644 (file)
@@ -547,10 +547,6 @@ static rpmSpec parseSpec(const char *specFile, rpmSpecFlags flags,
     while (parsePart != PART_NONE) {
        int goterror = 0;
        switch (parsePart) {
-       /* XXX Trap unexpected RPMRC_FAIL returns for now */
-       case RPMRC_FAIL:
-           rpmlog(RPMLOG_ERR, "FIXME: got RPMRC_FAIL from spec parse\n");
-           abort();
        case PART_ERROR: /* fallthrough */
        default:
            goterror = 1;