https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80116
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80116
--- Comment #5 from Marek Polacek ---
Author: mpolacek
Date: Mon Jun 26 10:02:27 2017
New Revision: 249643
URL: https://gcc.gnu.org/viewcvs?rev=249643&root=gcc&view=rev
Log:
PR c/80116
* c-common.h (warn_for_multistatement_macros
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80116
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80116
--- Comment #3 from Marek Polacek ---
A testcase:
#define SWAP(x, y) \
tmp = x; \
x = y; \
y = tmp
int x, y, tmp;
void
fn1 (void)
{
if (x)
SWAP(x, y); // warn
}
void
fn2 (void)
{
SWAP(x, y);
}
void
fn3 (void)
{
if (x)
{
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80116
Eric Gallager changed:
What|Removed |Added
CC||egall at gwmail dot gwu.edu
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80116
Martin Sebor changed:
What|Removed |Added
Keywords||diagnostic
Status|UNCONFIRMED