Fixed some gcc warnings
[fw/sdcc] / as / mcs51 / assubr.c
index 95a425e73a09f0d4530bf203b40c5b41bdd7d0e3..1751c29454b02bf39b79786f23b25d22f5a99d79 100644 (file)
@@ -12,9 +12,6 @@
 #include <stdio.h>
 #include <setjmp.h>
 #include <string.h>
-#if !defined(_MSC_VER)
-#include <alloc.h>
-#endif
 #include "asm.h"
 
 /*)Module      assubr.c
@@ -101,12 +98,15 @@ register int c;
  *             none
  */
 
+extern int fatalErrors;
+
 VOID
 diag()
 {
        register char *p,*errstr;
 
        if (eb != ep) {
+               fatalErrors++;
                p = eb;
                fprintf(stderr, "?ASxxxx-Error-<");
                while (p < ep) {