* get rid of diagnistic.[ch], pretty-print.[ch],
[fw/sdcc] / support / cpp2 / sdcpp-opts.c
index 506a4867fe52bbe22dacdc6e4363c9278a74adc5..19bc2649bb463de9041ed7d25e9d46ae64a233e5 100644 (file)
@@ -21,7 +21,6 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 
 #include "config.h"
 #include "system.h"
-#include "diagnostic.h"
 #include "intl.h"
 #include "cppdefault.h"
 #include "c-incpath.h"
@@ -315,7 +314,6 @@ sdcpp_common_handle_option (size_t scode, const char *arg, int value)
 
     case OPT_Werror:
       cpp_opts->warnings_are_errors = value;
-      global_dc->warning_as_error_requested = value;
       break;
 
     case OPT_Wimport:
@@ -577,8 +575,6 @@ sdcpp_common_post_options (const char **pfilename)
   cb->dir_change = cb_dir_change;
   cpp_post_options (parse_in);
 
-  input_location = UNKNOWN_LOCATION;
-
   /* If an error has occurred in cpplib, note it so we fail
      immediately.  */
   errorcount += cpp_errors (parse_in);