[hackers] [scc] [cpp] print correct pragma in warning message || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sun, 26 Jun 2016 22:36:51 +0200 (CEST)

commit e03cc084e704679233c93bb61dd240043811d13f
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sat Jun 25 01:38:12 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
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
_AT_@ -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();
 }
Received on Sun Jun 26 2016 - 22:36:51 CEST

This archive was generated by hypermail 2.3.0 : Sun Jun 26 2016 - 22:48:24 CEST