AnsweredAssumed Answered

Stm32 Embedded GUI Lib V2.0.0

Question asked by diviney.noel on Oct 27, 2011
Latest reply on Apr 3, 2013 by Andrew Neil
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.

Outcomes