]> git.lyx.org Git - features.git/commit
Detect clang version in autoconf (and use it a bit)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Jun 2016 09:25:23 +0000 (11:25 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Jun 2016 09:25:23 +0000 (11:25 +0200)
commite8655e9a70a60dfd9952016bac36b9edc6bbcf32
tree1e200860330bd6011df23e79a5139dae6e59881a
parentb2b8733096543b80b918375cc8a0e1fa6c5fd8b8
Detect clang version in autoconf (and use it a bit)

The version is read by checking the macros __clang_major__,
__clang_minor__ and __clang_patchlevel__. Hopefully they will have
coherent values everywhere.

For now, the version is used to set warnings a bit more reasonably for
older clang versions, which do not support -Wdeprecated-register and
some others that are used in pragmas in boost.

This removes many warnings when compiling with clang 3.3.
config/lyxinclude.m4