summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2011-07-22 08:12:05 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2011-07-22 08:12:05 +0200
commit01c6ff4f7136d2c72b520818ee1ba89dc53c71f0 (patch)
treece5c6834c0fb69830755ac8727653d8bbf07c2be
parent92d2f367e72eccedb2cd1e103ec7770b6a426ef2 (diff)
SMLTK: fixed g++ 4.6 compiler warning
g++ 4.6 warns that the "rc" variable is getting assigned but never used. smlEndEvaluation() must have been meant to return that error code instead of always returning SML_ERR_OK - fixed.
-rwxr-xr-xsrc/syncml_tk/src/sml/mgr/all/mgrcmdbuilder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syncml_tk/src/sml/mgr/all/mgrcmdbuilder.c b/src/syncml_tk/src/sml/mgr/all/mgrcmdbuilder.c
index ae040a4..601b530 100755
--- a/src/syncml_tk/src/sml/mgr/all/mgrcmdbuilder.c
+++ b/src/syncml_tk/src/sml/mgr/all/mgrcmdbuilder.c
@@ -698,7 +698,7 @@ SML_API Ret_t smlEndEvaluation(InstanceID_t id, MemSize_t *freemem)
return SML_ERR_WRONG_USAGE;
rc = xltEndEvaluation(id, (XltEncoderPtr_t)(pInstanceInfo->encoderState), freemem);
- return SML_ERR_OK;
+ return rc;
}
#endif