Commit f280b114 by Doug Evans

(handle_pragma): Only print warning once.

From-SVN: r8652
parent b43fc296
......@@ -579,7 +579,12 @@ handle_pragma (file)
/* ??? This is deprecated. Delete for gcc 2.8. */
if (strcmp (pbuf, "section") == 0)
{
warning ("#pragma section is deprecated, use section attributes");
static int printed_p = 0;
if (!printed_p)
{
warning ("#pragma section is deprecated, use section attributes");
printed_p = 1;
}
while (c && !isalpha (c))
c = getc (file);
psize = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment