]> git.cameronkatri.com Git - mandoc.git/blobdiff - man_macro.c
Open explicit scope on libman exit now only generates warning.
[mandoc.git] / man_macro.c
index 0622d255de65020794976fa8725c63238a7c1877..867e3e700fe59a376c00336f737e5b530f5c20a1 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: man_macro.c,v 1.25 2009/08/20 13:55:19 kristaps Exp $ */
+/*     $Id: man_macro.c,v 1.26 2009/08/21 12:12:12 kristaps Exp $ */
 /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
  *
@@ -357,7 +357,8 @@ man_macroend(struct man *m)
                        continue;
                if ( ! (MAN_EXPLICIT & man_macros[n->tok].flags))
                        continue;
-               return(man_nerr(m, n, WEXITSCOPE));
+               if ( ! man_nwarn(m, n, WEXITSCOPE))
+                       return(0);
        }
 
        return(man_unscope(m, m->first));