• Arnd Bergmann's avatar
    Kbuild: enable -Wmaybe-uninitialized warning for "make W=1" · a76bcf55
    Arnd Bergmann authored
    Traditionally, we have always had warnings about uninitialized variables
    enabled, as this is part of -Wall, and generally a good idea [1], but it
    also always produced false positives, mainly because this is a variation
    of the halting problem and provably impossible to get right in all cases
    [2].
    
    Various people have identified cases that are particularly bad for false
    positives, and in commit e74fc973 ("Turn off -Wmaybe-uninitialized
    when building with -Os"), I turned off the warning for any build that
    was done with CC_OPTIMIZE_FOR_SIZE.  This drastically reduced the number
    of false positive warnings in the default build but unfortunately had
    the side effect of turning the warning off completely in 'allmodconfig'
    builds, which in turn led to a lot of warnings (both actual bugs, and
    remaining false positives) to go in unnoticed.
    
    With commit 877417e6 ("Kbuild: change CC_OPTIMIZE_FOR_SIZE
    definition") enabled the warning again for allmodcon...
    a76bcf55
Makefile.ubsan 1.03 KB