mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 18:16:22 +00:00
build: enable -fanalyzer for static analysis
Enable gccs static analyzer to detect memory bugs at compile-time. This validates our __attribute__((__cleanup__)) macros and improves security when parsing external XMPP data with zero runtime overhead.
This commit is contained in:
@@ -69,6 +69,9 @@ if is_debug
|
||||
'-D_FORTIFY_SOURCE=2',
|
||||
'-Og'
|
||||
], language: 'c')
|
||||
if cc.get_id() == 'gcc'
|
||||
add_project_arguments('-fanalyzer', language: 'c')
|
||||
endif
|
||||
endif
|
||||
|
||||
if cc.get_id() == 'clang'
|
||||
|
||||
Reference in New Issue
Block a user