Fix build breakage.
Keep -Werror by inserting "\n" in necessary places.
Change-Id: I640b7e7fb9d8e843852760b6118fd1ab6f63d43f
diff --git a/slang_rs_spec_table.cpp b/slang_rs_spec_table.cpp
index b1dc643..51dc1fb 100644
--- a/slang_rs_spec_table.cpp
+++ b/slang_rs_spec_table.cpp
@@ -259,7 +259,7 @@
ClangBuilitinsMap[i]->getBuiltinTypeKind(),
ClangBuilitinsMap[i]->getDataType()->getTypeName(),
ClangBuilitinsMap[i]->getDataType()->getTypePragmaName());
- printf("#undef ENUM_SUPPORT_BUILTIN_TYPE");
+ printf("#undef ENUM_SUPPORT_BUILTIN_TYPE\n");
return 0;
}
@@ -278,7 +278,7 @@
MatrixDataType->getTypePragmaName(),
MatrixDataType->getDim());
}
- printf("#undef ENUM_RS_MATRIX_TYPE");
+ printf("#undef ENUM_RS_MATRIX_TYPE\n");
return 0;
}
@@ -293,7 +293,7 @@
printf("ENUM_RS_OBJECT_TYPE(%s, \"%s\")\n",
DataTypes[i]->getTypeName(),
DataTypes[i]->getTypePragmaName());
- printf("#undef ENUM_RS_OBJECT_TYPE");
+ printf("#undef ENUM_RS_OBJECT_TYPE\n");
return 0;
}
@@ -305,7 +305,7 @@
unsigned NumDataKinds) {
for (unsigned i = 0; i < NumDataKinds; i++)
printf("ENUM_RS_DATA_KIND(%s)\n", DataKinds[i]->getKindName());
- printf("#undef ENUM_RS_DATA_KIND");
+ printf("#undef ENUM_RS_DATA_KIND\n");
return 0;
}
@@ -322,7 +322,7 @@
DataElements[i]->getDataType()->getTypeName(),
((DataElements[i]->isNormal()) ? "true" : "false"),
DataElements[i]->getVectorSize());
- printf("#undef ENUM_RS_DATA_ELEMENT");
+ printf("#undef ENUM_RS_DATA_ELEMENT\n");
return 0;
}