This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

keil & pc-lint

Hi,
we started using pc-lint because of software quality requirements. Now I found a problem with some headers of C166.

absacc.h

#if (__MODEL__ == 0)
  #define MVAR(object, addr)   (*((object volatile *) (addr)))
  #define MARRAY(object, base) ((object volatile *) (base))
#else
  #define MVAR(object, addr)   (*((object volatile far *) (addr)))
  #define MARRAY(object, base) ((object volatile far *) (base))

  #define HVAR(object, addr)   (*((object volatile huge *) (addr)))
  #define HARRAY(object, base) ((object volatile huge *) (base))
  #define XVAR(object, addr)   (*((object volatile xhuge *) (addr)))
  #define XARRAY(object, base) ((object volatile xhuge *) (base))
#endif

For example, if HVAR() is used in the application pc-lint generates a warning

HVAR() not defined.

Pc-lint cannot resolve the #ifdef in this header because the macro __MODEL__ is not defined anywhere.

Any ideas to solve this problem?

Thank you
...Leo