I am using C++'s static_assert feature to check things at compile time which usually should pass, e.g:
static_assert( SOME_CONSTANT < 1000u, "..." );
Running PC-lint (version 9.00k) on that code emits note 948: "Operator '<' always evaluates to True", which is kind of pointless for static_asserts.
I know I can either append a //lint !e948
to every static_assert (which is what I do for now) or disable 948 globally, but that would also hide legitimate errors everywhere else.
Is it possible to tell PC-lint to not evaluate/check expressions in static_asserts?