Skip to content

Commit

Permalink
Merge pull request #5622 from ghalliday/issue11119
Browse files Browse the repository at this point in the history
HPCC-11119 Fix some warnings in the generated code

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
  • Loading branch information
richardkchapman committed Apr 8, 2014
2 parents 6db2647 + 27907b8 commit cb86c0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ecl/hqlcpp/hqlhtcpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2356,6 +2356,10 @@ void ActivityInstance::addConstructorMetaParameter()
OwnedHqlExpr metaExpr = createQuoted(s.str(), makeBoolType());
constructorArgs.append(*metaExpr.getClear());
}
else if ((kind == TAKwhen_action) || (kind == TAKemptyaction))
{
constructorArgs.append(*createTranslatedOwned(createValue(no_nullptr, makeBoolType())));
}
}

ParentExtract * ActivityInstance::createNestedExtract()
Expand Down Expand Up @@ -11147,7 +11151,7 @@ ABoundActivity * HqlCppTranslator::doBuildActivityPipeThrough(BuildCtx & ctx, IH
if (expr->hasAttribute(repeatAtom))
{
//virtual const char * getPipeProgram() { return "grep"; }
instance->startctx.addQuoted("virtual char * getPipeProgram() { return NULL; }");
instance->startctx.addQuoted("virtual const char * getPipeProgram() { return NULL; }");

BuildCtx pipeCtx(instance->startctx);
pipeCtx.addQuotedCompound("virtual char * getNameFromRow(const void * _self)");
Expand Down
2 changes: 1 addition & 1 deletion plugins/stringlib/stringlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static const char * EclDefinition =
" string StringToProperCase(const string src) : c,pure,entrypoint='slStringToProperCase';\n"
" string StringToCapitalCase(const string src) : c,pure,entrypoint='slStringToCapitalCase';\n"
" string StringToTitleCase(const string src) : c,pure,entrypoint='slStringToTitleCase';\n"
" integer4 StringCompareIgnoreCase(const string src1, string src2) : c,pure,entrypoint='slStringCompareIgnoreCase';\n"
" integer4 StringCompareIgnoreCase(const string src1, const string src2) : c,pure,entrypoint='slStringCompareIgnoreCase';\n"
" string StringReverse(const string src) : c,pure,entrypoint='slStringReverse';\n"
" string StringFindReplace(const string src, const string stok, const string rtok) : c,pure,entrypoint='slStringFindReplace';\n"
" string StringCleanSpaces(const string src) : c,pure,entrypoint='slStringCleanSpaces'; \n"
Expand Down

0 comments on commit cb86c0e

Please sign in to comment.