提交 e4a616e0 编写于 作者: J Jesse Zhang

Annotate assert-only variable

This should knock out the last instance of "unused variable" compiler
warning.
上级 f90dd34f
......@@ -1681,7 +1681,7 @@ CTranslatorDXLToPlStmt::TranslateDXLMergeJoin
GPOS_ASSERT(gpdb::ListLength(opexpr->args) == 2);
Expr *leftarg = (Expr *) gpdb::ListNth(opexpr->args, 0);
Expr *rightarg = (Expr *) gpdb::ListNth(opexpr->args, 1);
Expr *rightarg PG_USED_FOR_ASSERTS_ONLY = (Expr *) gpdb::ListNth(opexpr->args, 1);
GPOS_ASSERT(gpdb::ExprCollation((Node *) leftarg) ==
gpdb::ExprCollation((Node*) rightarg));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册