Skip to content

Commit

Permalink
Port CVS change by Alex (Applied patch for CORE-3022: gpre C++ compil…
Browse files Browse the repository at this point in the history
…er warnings with GCC 4.4.1)
  • Loading branch information
asfernandes committed Jun 5, 2010
1 parent 3650c36 commit a233141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gpre/c_cxx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3134,6 +3134,7 @@ static void gen_select( const act* action, int column)
gen_receive(action, column, port);
printa(column, "if (!SQLCODE)");
column += INDENT;
begin(column);
printa(column, "if (%s)", name);
column += INDENT;

Expand All @@ -3153,8 +3154,11 @@ static void gen_select( const act* action, int column)
endp(column);

printa(column - INDENT, "else");
begin(column);
printa(column, "SQLCODE = 100;");
endp(column);
column -= INDENT;
endp(column);
column -= INDENT;
endp(column);
}
Expand Down

0 comments on commit a233141

Please sign in to comment.