Skip to content

Commit

Permalink
Workaround false GCC compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
olpaw committed Aug 26, 2020
1 parent 5ff1ec5 commit 13f57df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ protected void visitStructFieldInfo(StructFieldInfo fieldInfo) {
registerElementForCurrentLine(fieldInfo.getParent().getAnnotatedElement());
writer.indents().appendln("{");
writer.indent();
String init = " = { 0 }";
writer.indents().appendln(fieldInfo.getParent().getName() + " " + tempVar + init + ";");
writer.indents().appendln(fieldInfo.getParent().getName() + " " + tempVar + ";");
writer.indents().appendln("memset(&" + tempVar + ", 0x0, sizeof(" + tempVar + "));");
printIsUnsigned(fieldInfo.getSignednessInfo(), isUnsigned(tempVar + "." + fieldInfo.getName()));
writer.outdent();
writer.indents().appendln("}");
Expand Down

0 comments on commit 13f57df

Please sign in to comment.