⛏️ index : buildtools.git

author Ingo Weinhold <ingo_weinhold@gmx.de> 2017-07-20 7:43:50.0 +02:00:00
committer Ingo Weinhold <ingo_weinhold@gmx.de> 2017-07-20 7:52:55.0 +02:00:00
commit
9167fe74f533668fb06da666be3933f5c938527d [patch]
tree
b1fc82a5192a4e82e3480b122de2677df0aaa9e0
parent
259af3cf06a9e75cc93903d6ff4d8cad89f94874
download
9167fe74f533668fb06da666be3933f5c938527d.tar.gz

legacy gcc: remove "#pragma once" warning

"#pragma once" is no longer obsolete. In fact it is the preferred header
guard method.

Diff

 legacy/gcc/gcc/cccp.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/legacy/gcc/gcc/cccp.c b/legacy/gcc/gcc/cccp.c
index 384eac7..4cd0d7b 100644
--- a/legacy/gcc/gcc/cccp.c
+++ a/legacy/gcc/gcc/cccp.c
@@ -7111,10 +7111,6 @@
{
  SKIP_WHITE_SPACE (buf);
  if (!strncmp ((char *) buf, "once", 4)) {
    /* Allow #pragma once in system headers, since that's not the user's
       fault.  */
    if (!instack[indepth].system_header_p)
      warning ("`#pragma once' is obsolete");
    do_once ();
  }