[Libreoffice-commits] core.git: configure.ac

Stephan Bergmann sbergman at redhat.com
Thu Nov 19 00:01:12 PST 2015


 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e6d21d08af14a3e48eb1f9fedf1cb7e4f449a4de
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 19 08:59:08 2015 +0100

    Fix Clang version check
    
    "clang -E -P /dev/stdin" causes warnings "clang: warning: /dev/stdin: 'linker'
    input unused" etc.
    
    Change-Id: Ia9c18b59b92558e1d959ce31caf38eed101865d3

diff --git a/configure.ac b/configure.ac
index b8b6dc9..69d5e83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3826,7 +3826,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 if test "$COM_IS_CLANG" = TRUE; then
     AC_MSG_CHECKING([the Clang version])
     clang_version=`echo __clang_major__.__clang_minor__.__clang_patchlevel__ | $CC -E -P /dev/stdin`
-    CLANG_FULL_VERSION=`echo __clang_version__ | $CC -E -P /dev/stdin`
+    CLANG_FULL_VERSION=`echo __clang_version__ | $CC -E -P -`
     CLANGVER=`echo $clang_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
     AC_MSG_RESULT([Clang $CLANG_FULL_VERSION, $CLANGVER])
     AC_DEFINE_UNQUOTED(CLANG_FULL_VERSION,$CLANG_FULL_VERSION)


More information about the Libreoffice-commits mailing list