News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Main Menu

Code Warnings in EVE Generated Code

Started by qwerty100, November 08, 2019, 10:13:20 AM

Previous topic - Next topic

qwerty100

I'm using an Eve 4.6RC4, using FT810 with a nordic nRF840 and compiled with GNU Arm Embedded Toolchain 8-2019-q3-update ( https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads )

Our project mandates the gcc -Werror flag so its challenging to work with the generated code due to the warnings it produces.

I've attached a zip with all the files I've had to fix, please pass this onto the Eve Developers for review and hopeful integration into next tool release.


Most annoying are when these are in my project files as they are often updated, eg

void App_Start__Builtin(App *context)
{
   void *owner = context->Owner;
   ((Ft_Esd_Widget *)&context->App_Screen)->Slots->Start(&context->App_Screen);
   Ft_Esd_Widget_SetActive(&context->App_Screen, 1);
}



error: passing argument 1 of 'Ft_Esd_Widget_SetActive' from incompatible pointer type [-Werror=incompatible-pointer-types]
  Ft_Esd_Widget_SetActive(&context->App_Screen, 1);

The Last line should really be passing Widget union member like this :-

Ft_Esd_Widget_SetActive(&context->App_Screen.Widget, 1);




Thanks.

BRT Community

Hello,

Thank you, I have passed this on to the development team.

Best Regards,
BRT Community