Commit f1677917 authored by Bi-Ruei, Chiu's avatar Bi-Ruei, Chiu

Remove 'missing braces' and 'unused-const-variable' warning

parent b8a6be0a
...@@ -259,6 +259,9 @@ emit_ioc_table(arg_t *arg, asn1p_expr_t *context, asn1c_ioc_table_and_objset_t i ...@@ -259,6 +259,9 @@ emit_ioc_table(arg_t *arg, asn1p_expr_t *context, asn1c_ioc_table_and_objset_t i
} }
} }
if(ioc_tao.ioct->rows == 0)
return 0;
/* Emit the Information Object Set */ /* Emit the Information Object Set */
OUT("static const asn_ioc_cell_t asn_IOS_%s_%d_rows[] = {\n", OUT("static const asn_ioc_cell_t asn_IOS_%s_%d_rows[] = {\n",
MKID(ioc_tao.objset), ioc_tao.objset->_type_unique_index); MKID(ioc_tao.objset), ioc_tao.objset->_type_unique_index);
...@@ -285,7 +288,7 @@ emit_ioc_table(arg_t *arg, asn1p_expr_t *context, asn1c_ioc_table_and_objset_t i ...@@ -285,7 +288,7 @@ emit_ioc_table(arg_t *arg, asn1p_expr_t *context, asn1c_ioc_table_and_objset_t i
OUT("static const asn_ioc_set_t asn_IOS_%s_%d[] = {\n", OUT("static const asn_ioc_set_t asn_IOS_%s_%d[] = {\n",
MKID(ioc_tao.objset), ioc_tao.objset->_type_unique_index); MKID(ioc_tao.objset), ioc_tao.objset->_type_unique_index);
INDENT(+1); INDENT(+1);
OUT("%zu, %zu, asn_IOS_%s_%d_rows\n", ioc_tao.ioct->rows, columns, OUT("{ %zu, %zu, asn_IOS_%s_%d_rows }\n", ioc_tao.ioct->rows, columns,
MKID(ioc_tao.objset), ioc_tao.objset->_type_unique_index); MKID(ioc_tao.objset), ioc_tao.objset->_type_unique_index);
INDENT(-1); INDENT(-1);
OUT("};\n"); OUT("};\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment