Fix alignment issue. Now traces using more than one alignment can be
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / internal / ctf / core / event / metadata / IOStructGen.java
index 7e3071960d424357027bff3dbc61bb1fbe9dfdeb..1380de49be9eafb2a3e14a79f54bd8ac2cdb55aa 100644 (file)
@@ -1545,18 +1545,11 @@ public class IOStructGen {
                 throw new ParseException("struct " + structName //$NON-NLS-1$
                         + " already defined."); //$NON-NLS-1$
             }
-
             /* Create the declaration */
             structDeclaration = new StructDeclaration(structAlign);
 
             /* Parse the body */
             parseStructBody(structBody, structDeclaration);
-            long maxFieldAlign = -1;
-            for( IDeclaration field : structDeclaration.getFields().values())
-            {
-                maxFieldAlign = Math.max(maxFieldAlign, field.getAlignment());
-            }
-            structDeclaration.setMinAlign(maxFieldAlign);
 
             /* If struct has name, add it to the current scope. */
             if (hasName) {
This page took 0.023762 seconds and 5 git commands to generate.