From 9167fe74f533668fb06da666be3933f5c938527d Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 20 Jul 2017 07:43:50 +0200 Subject: [PATCH] legacy gcc: remove "#pragma once" warning "#pragma once" is no longer obsolete. In fact it is the preferred header guard method. --- 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 +++ b/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 (); } -- gitore 0.2.2