Solved! Go to Solution.
Hi ,
I am also working on CW v 6.compiler for HCS08 family. I am also facing one error message that
C4301: Inline expansion done for function call. i am using a function which was INLINE.
I am using the option you have mentioned above.
But still facing the same error. but the error message still exists.
#pragma MESSAGE DISABLE C4301
Initialize_HWIO_APPLStack();
#pragma MESSAGE DEFAULT C4301
But if i use the second option, the warning was gone. The second option is used was -WmsgSd4301
Please let me know why i am not able to eliminate the warning with the 1st option.
Are there any settings do i need to set?
Hello
The pragmas MESSAGE DISABLE and MESSAGE DEFAULT must be use prior and after the function, which invokes Initialize_HWIO_APPLStack.
Not around the prototype for the function Initialize_HWIO_APPLStack
CrasyCat
Hi
I am using befoere and after the inline function call where i am calling from the Main fucntion.
But even though i am seeing the warning
void Reset_Interrupt (void)
{
#pragma MESSAGE DISABLE C4301
/* Initialize stack and Set Stack Pointer to start of stack area */
Initialize_HWIO_APPLStack();
#pragma MESSAGE DEFAULT C4301
/* Determine the cause of reset source */
}
Thanks. I tried the below one and it works.
#pragma MESSAGE DISABLE C4301
void Reset_Interrupt (void)
{
/* Initialize stack and Set Stack Pointer to start of stack area */
Initialize_HWIO_APPLStack();
/* Determine the cause of reset source */
}
#pragma MESSAGE DEFAULT C4301