BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

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

Author Topic: Code Warnings in EVE Generated Code  (Read 8935 times)

qwerty100

  • Newbie
  • *
  • Posts: 6
    • View Profile
Code Warnings in EVE Generated Code
« 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.
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 742
    • View Profile
Re: Code Warnings in EVE Generated Code
« Reply #1 on: November 08, 2019, 01:34:47 PM »

Hello,

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

Best Regards,
BRT Community
Logged