mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
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:
parent
259af3cf06
commit
9167fe74f5
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user