#701231 lintian: NDEBUG in compilation logs

Package:
lintian
Source:
lintian
Submitter:
Mathieu Malaterre
Date:
2017-12-29 23:00:05 UTC
Severity:
normal
Blocked By:
Bug Title
628518

  0

lintian: Please add support to scan build logs

wishlist stable testing unstable over 8 years ago

#701231#5
Date:
2013-02-23 09:41:18 UTC
From:
To:
It would really be terrific to grep throught the compilation logs and check for the presence of -DNDEBUG.

Use of -DNEBUG is considered EBW [1]

Another approach could be to grep through d/rules files for expression like:

#701231#12
Date:
2013-06-07 10:01:48 UTC
From:
To:
More info for #701231.

cmake from sid (2.8.11-2 and above ?), now defines
CMAKE_C_FLAGS_RELWITHDEBINFO as -O2 -g -DNDEBUG.

So for cmake users, you should either not defines CMAKE_BUILD_TYPE or
set it to Debug.

Ref:
http://lists.debian.org/debian-devel/2013/06/msg00278.html

#701231#17
Date:
2017-12-29 22:56:43 UTC
From:
To:
tags 701231 + moreinfo
thanks

Hi,

(Alas, Lintian does not have access to this.)

Is this still valid? Would you still find it useful...? I'm not
terribly convinced at the moment :)


Regards,