summaryrefslogtreecommitdiff
path: root/gphoto-m4
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2020-08-31 13:12:26 +0200
committerMarcus Meissner <marcus@jet.franken.de>2020-08-31 13:12:26 +0200
commitc62ed208851109baaaa217b121e2c7f7cb6c200e (patch)
treec2363a2d9b0cb7a536b8ce30904fa7ebd565f130 /gphoto-m4
parent4f748ac6ac2431505c7b06e7a4b89e47302e53e9 (diff)
downloadlibgphoto2-c62ed208851109baaaa217b121e2c7f7cb6c200e.tar.gz
added a GP_CONDITIONAL_COMPILE_FLAGS export, so we can easily add warning options
Diffstat (limited to 'gphoto-m4')
-rw-r--r--gphoto-m4/gp-pedantic-compiler-flags.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/gphoto-m4/gp-pedantic-compiler-flags.m4 b/gphoto-m4/gp-pedantic-compiler-flags.m4
index a23f02046..b84aa0b51 100644
--- a/gphoto-m4/gp-pedantic-compiler-flags.m4
+++ b/gphoto-m4/gp-pedantic-compiler-flags.m4
@@ -4,9 +4,9 @@ dnl ####################################################################
dnl
dnl
dnl ####################################################################
-dnl _GP_CONDITIONAL_COMPILE_FLAGS(FLAG_VAR, FLAGS)
+dnl GP_CONDITIONAL_COMPILE_FLAGS(FLAG_VAR, FLAGS)
dnl ####################################################################
-AC_DEFUN([_GP_CONDITIONAL_COMPILE_FLAGS], [dnl
+AC_DEFUN([GP_CONDITIONAL_COMPILE_FLAGS], [dnl
# BEGIN $0($@)
AS_VAR_IF([$1], [], [dnl
$1="$2"
@@ -62,9 +62,9 @@ dnl ####################################################################
AC_DEFUN([__GP_PEDANTIC_COMPILER_FLAGS], [dnl
# BEGIN $0($@)
gp_have_pedantic_compiler=yes
-_GP_CONDITIONAL_COMPILE_FLAGS([$1], [$4])dnl
+GP_CONDITIONAL_COMPILE_FLAGS([$1], [$4])dnl
AS_VAR_IF([gp_have_pedantic_compiler], [yes], [dnl
- _GP_CONDITIONAL_COMPILE_FLAGS([$1], [-pedantic -Wall -Wextra -Werror])dnl
+ GP_CONDITIONAL_COMPILE_FLAGS([$1], [-pedantic -Wall -Wextra -Werror])dnl
])
AM_CONDITIONAL([$3], [test "x$gp_have_pedantic_compiler" = "xyes"])
AC_SUBST([$2], ["[$]$1"])
@@ -87,6 +87,7 @@ dnl ####################################################################
m4_pattern_allow([GP_PEDANTIC_CFLAGS_])dnl
m4_pattern_allow([GP_PEDANTIC_CXXFLAGS_])dnl
m4_pattern_allow([GP_HAVE_PEDANTIC_FLAGS_])dnl
+m4_pattern_allow([GP_CONDITIONAL_COMPILE_FLAGS])dnl
AC_DEFUN([_GP_PEDANTIC_COMPILER_FLAGS], [dnl
# BEGIN $0($@)
gp_compiler_flags_saved_$1="[$]$1"