legacy gcc: remove "#pragma once" warning

"#pragma once" is no longer obsolete. In fact it is the preferred header
guard method.
This commit is contained in:
Ingo Weinhold 2017-07-20 07:43:50 +02:00
parent 259af3cf06
commit 9167fe74f5

View File

@ -7111,10 +7111,6 @@ do_pragma (buf, limit, op, keyword)
{
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 ();
}