Hello,
With IAR I was able to typedef a variable as a union then create a function of that type variable so the return on the function would be used with the features I had in the union. CW10 is not liking this. I'm getting a "declaration syntax error". I can not find any documentation that states a function can NOT be of type Union in C and why has IAR allowed this as valid syntax and executes correctly?
Regards,
Mark
Solved! Go to Solution.
Found the problem. I had to remove: #include <stdio.h>