kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #23471
[PATCH 7/8] Avoid C99 style compound statement
Support for C99 in C++ programs is a gcc extension.
---
eeschema/autoplace_fields.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/eeschema/autoplace_fields.cpp b/eeschema/autoplace_fields.cpp
index 4d97cd8..07c1002 100644
--- a/eeschema/autoplace_fields.cpp
+++ b/eeschema/autoplace_fields.cpp
@@ -410,7 +410,10 @@ protected:
}
if( collision != COLLIDE_NONE )
- colliding.push_back( (SIDE_AND_COLL){ side, collision } );
+ {
+ SIDE_AND_COLL tmp = { side, collision };
+ colliding.push_back( tmp );
+ }
}
return colliding;
Follow ups
References