BRT Community

General Category => Discussion - EVE => Topic started by: qwerty100 on November 08, 2019, 10:13:20 AM

Title: Code Warnings in EVE Generated Code
Post by: qwerty100 on November 08, 2019, 10:13:20 AM
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.
Title: Re: Code Warnings in EVE Generated Code
Post by: BRT Community on November 08, 2019, 01:34:47 PM
Hello,

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

Best Regards,
BRT Community