kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #24783
[PATCH 04/12] 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 9af6247..96ee6c0 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