258 views
in GUI Development by

Hi,

I seem to have found a bug in Resources.ewu which is causes the following compiler error:

assignment makes integer from pointer without a cast [-Werror]

The code at line 329 reads

      native ( name, handle )
      {
        extern XBitmap* EwLoadExternBitmap( XString aName );
        handle = EwLoadExternBitmap( name );
      }

This should actually be:

      native ( name, handle )
      {
        extern XBitmap* EwLoadExternBitmap( XString aName );
        handle = (XHandle) EwLoadExternBitmap( name );
      }

This is because handle is defined as an unsigned integer, so it is necessary to cast the pointer to the correct type in order to aviod a compiler warning (which results in a build error in gcc when -Werror is set).  

 

Regards

Tim

 

 

1 Answer

0 votes
by

Hi Tim,

thank you for the bug report!

A few days ago we fixed this bug for the next version of Embedded Wizard. Within a few days we will release Embedded Wizard V8.10.

Stay tuned...

Best regards,

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...