On 01/06/2014 10:01 AM, Geert Uytterhoeven wrote:
> + /scratch/kisskb/src/drivers/net/wireless/brcm80211/brcmfmac/sdio_chip.c:
> warning: 'str_mask' may be used uninitialized in this function
> [-Wuninitialized]: => 789:19
> + /scratch/kisskb/src/drivers/net/wireless/brcm80211/brcmfmac/sdio_chip.c:
> warning: 'str_shift' may be used uninitialized in this function
> [-Wuninitialized]: => 790:21
This is a false negative. These variables are used within 'if (strtab !=
NULL) {...}'. strtab is initialized to NULL and when set to non-NULL
also str_mask and str_shift are set.
So it seems gcc falls short on -Wuninitialized here.
Regards,
Arend
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/