]> git.draconx.ca Git - cdecl99.git/blobdiff - src/declare.c
libcdecl: Avoid asserts in output declarator traversal.
[cdecl99.git] / src / declare.c
index c5a1f236953a887a6d056b9dcf22f4b4e805fce2..ea6003f6c9a26c8cff0ca3d8206eabf74e132f8c 100644 (file)
@@ -17,9 +17,7 @@
  */
 
 #include <config.h>
-#include <stdio.h>
 #include <stdbool.h>
-#include <assert.h>
 
 #include "cdecl.h"
 #include "cdecl-internal.h"
@@ -124,8 +122,6 @@ declare_declarator(struct output_state *dst, struct cdecl_declarator *d)
                        declare_postfix_child(dst, d->child);
                        declare_function(dst, &d->u.function);
                        return;
-               default:
-                       assert(0);
                }
        }
 }