]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Drop C++ references and obsolete C standards (#513)
authorAdam Majer <amajer@suse.de>
Mon, 10 Apr 2023 14:22:46 +0000 (16:22 +0200)
committerGitHub <noreply@github.com>
Mon, 10 Apr 2023 14:22:46 +0000 (16:22 +0200)
With no C++ compiler needed, there is no need to set the
CXXFLAGS or log it during configure. Furthermore, forcing
outdated C11 standard is not a good idea considering compilers
have moved on. We should not limit our feature set, including
compiler warnings, to old standards.

configure.ac

index 84402562613444e5672bd5fef45c15e5a816b1a5..610f15b67ae006db0a45cbfb891e66555d3bb3a7 100644 (file)
@@ -379,11 +379,9 @@ AS_IF([test x"$enable_werror" = "xyes"], [
 ])
 AS_IF([test x"$GCC" = "xyes"], [
        # Be tough with warnings and produce less careless code
-       CFLAGS="$CFLAGS -Wall -std=gnu11"
-       CXXFLAGS="$CXXFLAGS -Wall " # -Weffc++" # TODO: enable when it does not print 1MB of warnings
+       CFLAGS="$CFLAGS -Wall"
 ])
 CFLAGS="$CFLAGS -D_GNU_SOURCE"
-CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
 
 # =========================================================
 # Select a different shell instead of the default /bin/bash
@@ -411,7 +409,6 @@ AC_MSG_NOTICE([
 ==============================================================================
 Environment settings:
        CFLAGS:                                    ${CFLAGS}
-       CXXFLAGS:                                  ${CXXFLAGS}
        LDFLAGS:                                   ${LDFLAGS}
 Build configuration:
        cups-config:     ${with_cups_config}