|
|||||||||||
Technical Support Support Resources
Product Information |
BL51: Warning 16 (Uncalled Segment...) for Called FunctionInformation in this article applies to:
SYMPTOMSI have written a function called foo and it is called from the same source file. Here is the function:
here is the function call:
When I build my project I get the following warning:
for the function foo. Why? CAUSEThis can occur if the function call is unreachable. For example, if either x or B0 is defined as zero (
) then the compiler sees this and optimizes out the if statement, as the code inside is unreachable. If there are no other calls to the function, then Warning 16 is generated. RESOLUTIONThere isn't much point writing code that is unreachable. Remove or modify the if statement. MORE INFORMATION
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.