W3003 Warnings

array-size-mismatch

fixed-size array not fully initialized

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(W3003) or @suppress(array_size_mismatch)

How to fix

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

Related errors