Skip to main content
divner
Associate II
October 27, 2011
Question

Stm32 Embedded GUI Lib V2.0.0

  • October 27, 2011
  • 13 replies
  • 3023 views
Posted on October 27, 2011 at 08:20

Hi

Whilst compiling the demo with warnings enabled I get the following error

''src/graphicObject.c:1476:7: warning: the address of 'pPage' will always evaluate as 'true'''

This error is associated with the following from source file graphicObject.c

GL_ErrStatus DestroyPageControl ( GL_Page_TypeDef* pPage, uint16_t ID )

{

         uint32_t index = 0;

         if (!&pPage)

        {

               return GL_ERROR;

         }

       .....

      ......

}

What is being tested here?, the pointer or the address of the pointer?

Appreciate if somebody from the MCD Application Team could have a look at this.

There are also numerous other warnings being emitted from the library which clutter the output from the compiler (gcc in my case) and which make developing with the library most irritating.

I noted that the tool vendor's solution is to disable all warnings (most useful).

Best regards,

Noel Diviney.

#gui #don't-hijack-old-threads #when-will-gui-lib-forstm32f4? #setting-a-bad-example
    This topic has been closed for replies.

    13 replies

    Andrew Neil
    Super User
    April 2, 2013
    Posted on April 02, 2013 at 15:55

    Another duplicate post due to stupid forum software

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    a9d
    Visitor II
    April 2, 2013
    Posted on April 02, 2013 at 16:24

    So  ST can give Free emWin ? 

    Andrew Neil
    Super User
    April 2, 2013
    Posted on April 03, 2013 at 00:47

    You should speak to your local FAE or distributor to get the precise details of the deal.

    You could also try googling - it was anounced at Embedded World...

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.