495 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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...