W3003 Safety Warnings

Safety

fixed-size array is not fully initialized; remaining elements will be zero-valued

When this occurs

Declaring a fixed-size array but providing fewer elements than the declared size

Example error message

warning[W3003]: array declared with size 10 but only 3 elements provided

Suppressing this warning

This warning can be suppressed using:

Suppress with #suppress(W3003) at function declaration site OR #suppress(ALL) at top of file

How to fix

Initialize all elements of a fixed-size array, or suppress with `#suppress(W3003)`.

Related errors