]> git.buserror.net Git - polintos/scott/priv.git/commitdiff
Fix a couple compiler errors that GCC 4.0 noticed.
authorScott Wood <scott@odin.buserror.net>
Sun, 3 Dec 2006 18:33:05 +0000 (12:33 -0600)
committerScott Wood <scott@odin.buserror.net>
Sun, 3 Dec 2006 18:33:05 +0000 (12:33 -0600)
idlcomp/main.cc
idlcomp/util.cc

index 2b9702f9f46dc394bc1cd9ae0b82c728205ea169..597fbb768c7aa7ae47ae577e0cd2b8105d7e3c8e 100644 (file)
@@ -743,8 +743,7 @@ int run_idlc(int argc, const char **argv)
        }
        
        catch (InvalidArgument) {
-               fprintf(stderr, "Internal idlc error: Uncaught InvalidArgument\n",
-                       cur_input_file, curline);
+               fprintf(stderr, "Internal idlc error: Uncaught InvalidArgument\n");
                return 1;
        }
 
index 56b72b36c640860c4bc76cdc607eaa04b513afe3..16b0e1151b07120bce706258a39958723e12402b 100644 (file)
@@ -2,6 +2,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <dirent.h>
+#include <errno.h>
 #include <cctype>
 
 #include <idlc.h>