SRC\SVC\file.c:279: warning: [#767-D] conversion from pointer to smaller integer Reason:
Example 1: void function func( void) { uint8 smallVariable; uint8* bigVariable; smallVariable = &bigVariable; /* Pointer is 32bit value. Wrong assignment to uint8 */ } Example 2: uint32 big_variable; void func(void) { Boolean result; /* Calling other function */ result = otherFunc((uint8) &bigVariable)); /* here "*" is forgotten after uint8 */ } Boolean otherFunc( uint8* ) { /* other function code */ } Problem:
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorWarnings are important! Archives
May 2017
Categories |