shithub: jbig2

Download patch

ref: 04b5524d8767196d4331887cfc6641ada5e5bf42
parent: d46b5050cb2ba55fbeb32e70ae368e614ff33d5a
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Mon Nov 3 11:38:57 EST 2003

Add a 'default' case to the output file format switch to clear up some 
warnings.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@283 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/jbig2dec.c
+++ b/jbig2dec.c
@@ -320,6 +320,9 @@
             case jbig2dec_format_pbm:
               jbig2_image_write_pbm(image, stdout);
               break;
+            default:
+              fprintf(stderr, "unsupported output format.\n");
+              return 1;
           }
         }
       else
@@ -335,6 +338,9 @@
             case jbig2dec_format_pbm:
               jbig2_image_write_pbm_file(image, params->output_file);
               break;
+            default:
+              fprintf(stderr, "unsupported output format.\n");
+              return 1;
           }
         }