commit e03cc084e704679233c93bb61dd240043811d13f
Author:     Quentin Rameau <[email protected]>
AuthorDate: Sat Jun 25 01:38:12 2016 +0200
Commit:     Quentin Rameau <[email protected]>
CommitDate: Sat Jun 25 01:38:12 2016 +0200

    [cpp] print correct pragma in warning message

diff --git a/cc1/cpp.c b/cc1/cpp.c
index 96ee358..96e6404 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -573,7 +573,7 @@ pragma(void)
        next();
        if (!strcmp(yytext, "GCC"))
                warn(magic);
-       warn("ignoring pragma '%s'", input->begin);
+       warn("ignoring pragma '%s'", yytext);
        *input->p = '\0';
        next();
 }

Reply via email to