changeset 513:261e021c0fab

Unknown #preprocessor directives should be a warning, not an error. (Marc Andre Turner pointed this out.)
author Rob Landley <rob@landley.net>
date Wed, 14 Nov 2007 00:55:53 -0600
parents 38ce6428eaa0
children 803a420a9e04
files tcc.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tcc.c	Mon Nov 12 23:34:23 2007 -0600
+++ b/tcc.c	Wed Nov 14 00:55:53 2007 -0600
@@ -2164,7 +2164,8 @@
                to emulate cpp behaviour */
         } else {
             if (!(saved_parse_flags & PARSE_FLAG_ASM_COMMENTS))
-                error("invalid preprocessing directive #%s", get_tok_str(tok, &tokc));
+                warning("Ignoring unknown preprocessing directive #%s",
+                        get_tok_str(tok, &tokc));
         }
         break;
     }