Skip to content
  • Stefan Weil's avatar
    3ccdbecf
    tci: Fix build regression · 3ccdbecf
    Stefan Weil authored
    
    
    Commit d38ea87a cleaned the include
    statements which resulted in a wrong order of assert.h and the definition
    of NDEBUG in tci.c. Normally NDEBUG modifies the definition of the assert
    macro, but here this definition comes too late which results in a failing
    build.
    
    To fix this, a new macro tci_assert which depends on CONFIG_DEBUG_TCG
    is introduced. Only builds with CONFIG_DEBUG_TCG will use assertions.
    Even in this case, it is still possible to disable assertions by
    defining NDEBUG via compiler settings.
    
    Tested-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
    Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
    3ccdbecf
    tci: Fix build regression
    Stefan Weil authored
    
    
    Commit d38ea87a cleaned the include
    statements which resulted in a wrong order of assert.h and the definition
    of NDEBUG in tci.c. Normally NDEBUG modifies the definition of the assert
    macro, but here this definition comes too late which results in a failing
    build.
    
    To fix this, a new macro tci_assert which depends on CONFIG_DEBUG_TCG
    is introduced. Only builds with CONFIG_DEBUG_TCG will use assertions.
    Even in this case, it is still possible to disable assertions by
    defining NDEBUG via compiler settings.
    
    Tested-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
    Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
Loading