diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2011-07-22 08:12:05 +0200 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2011-07-22 08:12:05 +0200 |
commit | 01c6ff4f7136d2c72b520818ee1ba89dc53c71f0 (patch) | |
tree | ce5c6834c0fb69830755ac8727653d8bbf07c2be | |
parent | 92d2f367e72eccedb2cd1e103ec7770b6a426ef2 (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-x | src/syncml_tk/src/sml/mgr/all/mgrcmdbuilder.c | 2 |
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 |