build: refactor compiler_warnings.m4 macro
authorThomas Haller <thaller@redhat.com>
Wed, 29 Oct 2014 10:52:47 +0000 (11:52 +0100)
committerThomas Haller <thaller@redhat.com>
Wed, 29 Oct 2014 11:40:03 +0000 (12:40 +0100)
commitdd243ceefe998be36b5f0bea014d007ba30ec3fb
treed3ed5f8da7eb87d542aa1a0d85d98e3e38ac1ea9
parentb77567b2257c6ff3a78d508b332a330671119b65
build: refactor compiler_warnings.m4 macro

NM_COMPILER_WARNINGS still works the same, but
rename variables to have a CFLAGS_* prefix.

Also cleanup the construction of CFLAGS by appending
to CFLAGS_MORE_WARNINGS variable instead of appending
to CFLAGS, and resetting to SAVE_CFLAGS.

Signed-off-by: Thomas Haller <thaller@redhat.com>
m4/compiler_warnings.m4