[warning-fix][too-many-arguments-for-format]
Removed unused variables. Fix Issue #36.
This commit is contained in:
@@ -1334,7 +1334,7 @@ AGGRprint_access_methods( CONST char * entnm, Variable a, FILE * file, Type t,
|
||||
fprintf( file, "\t n = _%s.NewNode();\n", attrnm );
|
||||
fprintf( file, "\t _%s.AppendNode( (IntNode*)n );\n", attrnm );
|
||||
fprintf( file, "\t}\n" );
|
||||
fprintf( file, "\t((IntNode*)n)->value = x[i];\n", nm );
|
||||
fprintf( file, "\t((IntNode*)n)->value = x[i];\n");
|
||||
fprintf( file, "\tstd::cout << \"Assigning aggr int element: \" << ((IntNode*)n)->value;\n" );
|
||||
/* /////////////////////////////////////////// */
|
||||
if( print_logging ) {
|
||||
@@ -1387,7 +1387,7 @@ AGGRprint_access_methods( CONST char * entnm, Variable a, FILE * file, Type t,
|
||||
fprintf( file, "\t n = _%s.NewNode();\n", attrnm );
|
||||
fprintf( file, "\t _%s.AppendNode( (RealNode*)n );\n", attrnm );
|
||||
fprintf( file, "\t}\n" );
|
||||
fprintf( file, "\t((RealNode*)n)->value = x[i];\n", nm );
|
||||
fprintf( file, "\t((RealNode*)n)->value = x[i];\n");
|
||||
fprintf( file, "\tstd::cout << \"Assigning aggr real element: \" << ((RealNode*)n)->value;\n" );
|
||||
/* /////////////////////////////////////////// */
|
||||
if( print_logging ) {
|
||||
@@ -1507,7 +1507,7 @@ AGGRprint_access_methods( CONST char * entnm, Variable a, FILE * file, Type t,
|
||||
fprintf( file, "\t n = _%s.NewNode();\n", attrnm );
|
||||
fprintf( file, "\t _%s.AppendNode( (EnumNode*)n );\n", attrnm );
|
||||
fprintf( file, "\t}\n" );
|
||||
fprintf( file, "\t((EnumNode*)n)->node->put( (int)x[i] );\n", nm );
|
||||
fprintf( file, "\t((EnumNode*)n)->node->put( (int)x[i] );\n");
|
||||
fprintf( file, "\tstd::cout << \"Assigning aggr enum element: \" << ((EnumNode*)n)->node->element_at( ((EnumNode*)n)->node->asInt() );\n" );
|
||||
/* /////////////////////////////////////////// */
|
||||
if( print_logging ) {
|
||||
@@ -1563,7 +1563,7 @@ AGGRprint_access_methods( CONST char * entnm, Variable a, FILE * file, Type t,
|
||||
fprintf( file, "\t n = _%s.NewNode();\n", attrnm );
|
||||
fprintf( file, "\t _%s.AppendNode( (StringNode*)n );\n", attrnm );
|
||||
fprintf( file, "\t}\n" );
|
||||
fprintf( file, "\t((StringNode*)n)->value = x[i];\n", nm );
|
||||
fprintf( file, "\t((StringNode*)n)->value = x[i];\n");
|
||||
fprintf( file, "\tstd::cout << \"Assigning aggr string element: \" << ((StringNode*)n)->value.c_str();\n" );
|
||||
/* /////////////////////////////////////////// */
|
||||
if( print_logging ) {
|
||||
|
||||
@@ -756,7 +756,7 @@ TYPEselect_inc_print( const Type type, FILE * f ) {
|
||||
/** if there are duplicate underlying types **/
|
||||
fprintf( f, "\n\t// part 7\n" );
|
||||
fprintf( f, "\tconst TypeDescriptor *"
|
||||
"SetUnderlyingType ( const TypeDescriptor * td );\n", n );
|
||||
"SetUnderlyingType ( const TypeDescriptor * td );\n");
|
||||
} else {
|
||||
fprintf( f, "\n\t// part 7 ... NONE\tonly for complex selects...\n" );
|
||||
}
|
||||
@@ -1901,7 +1901,7 @@ TYPEselect_lib_print( const Type type, FILE * f, Schema schema ) {
|
||||
LISTdo( SEL_TYPEget_items( type ), t, Type )
|
||||
z = FirstToUpper( TYPEget_name( t ) );
|
||||
fprintf( f, "Logical %s::Is%s() const\n{\n", n, z );
|
||||
fprintf( f, " if( !exists() )\n", n );
|
||||
fprintf( f, " if( !exists() )\n");
|
||||
fprintf( f, " return LUnknown;\n" );
|
||||
fprintf( f, " if( CurrentUnderlyingType () == %s )\n", TYPEtd_name( t ) );
|
||||
fprintf( f, " return LTrue;\n" );
|
||||
|
||||
Reference in New Issue
Block a user