build-sys: Bump to -std=gnu11
Mostly because when building with CLang, I get a spam of warnings like: ``` /home/walters/src/github/projectatomic/rpm-ostree/libdnf/libdnf/dnf-transaction.h:37:27: warning: redefinition of typedef 'DnfTransaction' is a C11 feature [-Wtypedef-redefinition] G_DECLARE_DERIVABLE_TYPE (DnfTransaction, dnf_transaction, DNF, TRANSACTION, GObject) ``` Closes: #501 Approved by: jlebon
This commit is contained in:
parent
c389b6e939
commit
7025cb778e
@ -36,7 +36,7 @@ AM_CPPFLAGS += -DDATADIR='"$(datadir)"' \
|
||||
-DLOCALEDIR=\"$(datadir)/locale\" \
|
||||
-DRPM_OSTREE_FEATURES='"$(RPM_OSTREE_FEATURES)"' \
|
||||
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40_
|
||||
AM_CFLAGS += -std=gnu99 $(WARN_CFLAGS)
|
||||
AM_CFLAGS += -std=gnu11 $(WARN_CFLAGS)
|
||||
# bundled libdnf
|
||||
AM_LDFLAGS += "-Wl,-rpath=$(libdir)/rpm-ostree"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user