Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
AmbSignalMapper: clean up the warning message
Browse files Browse the repository at this point in the history
Some generated functions by AmbSignalMapper do not return the result
even it is not a void function. Because of this reason, below error
occurs when build it. This patch fixes this bug.

---------------------------------------------------------------------
warning: control reaches end of non-void function [-Wreturn-type]
---------------------------------------------------------------------

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
  • Loading branch information
again4you authored and tripzero committed Nov 3, 2016
1 parent d5c2a05 commit be3f71e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -125,6 +125,8 @@ bool CANSignal::updateFrame(can_frame* frame)
int64_t bits = conversionFunctionTo(val, static_cast<int64_t>(temp));

*(reinterpret_cast<uint64_t*>(&frame->data[0])) |= toSignalBits(bits);

return true;
}

int64_t CANSignal::getSignalBits( const can_frame& frame )
Expand Down
Expand Up @@ -242,7 +242,7 @@ class CANMessage
} \
uint64_t conversionFunctionTo(double value, uint64_t bits) { \
if(convertToFunction) \
convertToFunction(convert<valueType>(value), bits); \
return convertToFunction(convert<valueType>(value), bits); \
else return bits; \
} \
valueType m_minValue; \
Expand Down

0 comments on commit be3f71e

Please sign in to comment.