Skip to content

Commit d7f9cea

Browse files
authored
Merge pull request #5418 from jhlegarreta/FixCommaMisuseWarning
COMP: Prefer splitting comma-separated pre-increment statements
2 parents b72bb6e + a5671fe commit d7f9cea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Examples/IO/IOPlugin.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ main(int argc, char * argv[])
8888
<< std::endl
8989
<< " described as \"" << *d << "\"" << std::endl
9090
<< " enabled " << *e << std::endl;
91-
++n, ++d, ++e;
91+
++n;
92+
++d;
93+
++e;
9294
}
9395
}
9496
}
@@ -181,7 +183,9 @@ main(int argc, char * argv[])
181183
<< std::endl
182184
<< " described as \"" << *d << "\"" << std::endl
183185
<< " enabled " << *e << std::endl;
184-
++n, ++d, ++e;
186+
++n;
187+
++d;
188+
++e;
185189
}
186190
}
187191
}

0 commit comments

Comments
 (0)