meson: add compiler warnings

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina committed 2020-08-03 09:26:59 +02:00
1 parent 8dd259d0c6
commit c9d0ef07ed
6 files changed
+222 -389

No files matched your search

+7
View File
@@ -1,5 +1,12 @@
#include <meson-config.h>
/* Enable compile-time and run-time bounds-checking, and some warnings,
* without upsetting newer glibc. */
#if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__
# define _FORTIFY_SOURCE 2
#endif
#ifndef __GNUC__
# error "Libvirt requires GCC >= 4.8, or CLang"
#endif