fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30872 )
Change subject: host/*/configure.ac: set -std=gnu11 ......................................................................
host/*/configure.ac: set -std=gnu11
Avoid using different dialects by accident (and resulting compiler errors if compiler assumes a different dialect), like in [1].
Related: https://lists.osmocom.org/pipermail/openbsc/2019-September/013030.html Related: https://lists.osmocom.org/pipermail/openbsc/2021-January/013360.html Related: [1] libosmocore.git I72310886bef4db635078b75715c9d98ee45391cc Change-Id: I48ec1703de04f40ea530f4b4442084fdc94dc966 --- M src/host/gprsdecode/configure.ac M src/host/layer23/configure.ac M src/host/osmocon/configure.ac M src/host/virt_phy/configure.ac 4 files changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/72/30872/1
diff --git a/src/host/gprsdecode/configure.ac b/src/host/gprsdecode/configure.ac index 8da68c8..734cbd3 100644 --- a/src/host/gprsdecode/configure.ac +++ b/src/host/gprsdecode/configure.ac @@ -2,6 +2,8 @@ AC_INIT([gprsdecode], [0.0.0]) AM_INIT_AUTOMAKE
+CFLAGS="$CFLAGS -std=gnu11" + dnl kernel style compile messages m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
diff --git a/src/host/layer23/configure.ac b/src/host/layer23/configure.ac index 053cf58..85765ae 100644 --- a/src/host/layer23/configure.ac +++ b/src/host/layer23/configure.ac @@ -2,6 +2,8 @@ AC_INIT([layer23], [0.0.0]) AM_INIT_AUTOMAKE
+CFLAGS="$CFLAGS -std=gnu11" + dnl kernel style compile messages m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
diff --git a/src/host/osmocon/configure.ac b/src/host/osmocon/configure.ac index 556f60b..4195ecd 100644 --- a/src/host/osmocon/configure.ac +++ b/src/host/osmocon/configure.ac @@ -5,6 +5,8 @@
AM_INIT_AUTOMAKE([dist-bzip2])
+CFLAGS="$CFLAGS -std=gnu11" + dnl kernel style compile messages m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
diff --git a/src/host/virt_phy/configure.ac b/src/host/virt_phy/configure.ac index 97c2e19..2a29bc8 100644 --- a/src/host/virt_phy/configure.ac +++ b/src/host/virt_phy/configure.ac @@ -3,6 +3,8 @@ AM_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects])
+CFLAGS="$CFLAGS -std=gnu11" + dnl kernel style compile messages m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])