Think of it like testing if a switch on a enum has a case for possible enum element. Now apply that same thinking to a array which is sized using a enum. > On 11 Jan 2018, at 11:13 pm, Michał Kępień via RT wrote: > >> Coverity is trying each enum value and the final index value is out of range of the array indexes give C is zero based. > > But the flagged code is not even an array _access_, it is an array > _declaration_. > >> We could also just mark these as intentional and ignore them. > > This is what I would be more inclined to do. I still do not understand > how using [ + 1] for the array size would help, but given that I > expect this code to be rewritten pretty soon anyway, feel free to make > the warning go away in any way you deem appropriate and let's not waste > any more time discussing this. > > > -- > Ticket History: https://bugs.isc.org/Ticket/Display.html?id=46841 -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org