From f132d8afc2fc435688d4501c464927d849f2800a Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Tue, 12 Oct 2021 19:43:19 +0200 Subject: [PATCH] Use same AC_LANG invocation in both configure.ac files --- configure.ac | 7 ++++--- libgphoto2_port/configure.ac | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6f36b482a0..3777c172d7 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,10 @@ dnl libtool 2011-10-18 2.4.2 AM_SILENT_RULES([no]) +dnl Every compile example will be using the C language unless +dnl something else is said explicitly. +AC_LANG([C]) + dnl Flag all GP_ strings in result as error unless specifically allowed. m4_pattern_forbid([^_?GP_])dnl @@ -195,9 +199,6 @@ dnl GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS], [-Wno-format-overflow]) dnl GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS], [-Wno-format-truncation]) dnl GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS], [-Wno-stringop-truncation]) -dnl Every compile example after here will be using the C language -AC_LANG([C]) - dnl --------------------------------------------------------------------------- dnl Turn on (almost) all warnings when using gcc diff --git a/libgphoto2_port/configure.ac b/libgphoto2_port/configure.ac index 308dab9047..d13aacc706 100644 --- a/libgphoto2_port/configure.ac +++ b/libgphoto2_port/configure.ac @@ -21,6 +21,8 @@ AM_INIT_AUTOMAKE([ AM_SILENT_RULES([no]) +dnl Every compile example will be using the C language unless +dnl something else is said explicitly. AC_LANG([C])