commit dd4f967069fd8ff8e323137135475ecff2f5e34a
Author: Kornel Benko <[email protected]>
Date: Sun Jun 15 10:57:46 2025 +0200
Cmake build: Enable '-Werror -pedantic' compilation
---
3rdparty/hunspell/CMakeLists.txt | 2 ++
3rdparty/libiconv/CMakeLists.txt | 2 ++
3rdparty/zlib/CMakeLists.txt | 2 ++
src/CMakeLists.txt | 2 ++
4 files changed, 8 insertions(+)
diff --git a/3rdparty/hunspell/CMakeLists.txt b/3rdparty/hunspell/CMakeLists.txt
index fbb0baccd4..604fc9baf3 100644
--- a/3rdparty/hunspell/CMakeLists.txt
+++ b/3rdparty/hunspell/CMakeLists.txt
@@ -11,6 +11,8 @@ endif()
project(hunspell)
+add_compile_options(-Wno-unused-but-set-variable)
+
set(HUNSPELL_VERSION 1.7.0)
set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/${HUNSPELL_VERSION}/src)
diff --git a/3rdparty/libiconv/CMakeLists.txt b/3rdparty/libiconv/CMakeLists.txt
index 6d2a6fe5fe..01b9297d0b 100644
--- a/3rdparty/libiconv/CMakeLists.txt
+++ b/3rdparty/libiconv/CMakeLists.txt
@@ -25,6 +25,8 @@ set(LIBICONV_VERSION 1.15)
set(SRCDIR ${LIBICONV_VERSION})
+add_compile_options(-Wno-deprecated-non-prototype -Wno-strict-prototypes
-Wno-static-in-inline -Wno-parentheses-equality)
+
# Options
option(ENABLE_EXTRA "Enable a few rarely used encodings" OFF)
option(ENABLE_NLS "Translation of program messages to the user's native
diff --git a/3rdparty/zlib/CMakeLists.txt b/3rdparty/zlib/CMakeLists.txt
index f314adf86a..05836c2678 100644
--- a/3rdparty/zlib/CMakeLists.txt
+++ b/3rdparty/zlib/CMakeLists.txt
@@ -18,6 +18,8 @@ project(zlib C)
set(VERSION "1.2.11")
set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/1.2.11)
+add_compile_options(-Wno-deprecated-non-prototype -Wno-strict-prototypes)
+
option(ASM686 "Enable building i686 assembly implementation")
option(AMD64 "Enable building amd64 assembly implementation")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index df0191a8ae..05d1fd4f57 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -8,6 +8,8 @@ project(${_lyx})
include_directories(${TOP_SRC_DIR}/src)
+add_compile_options(-Wno-nested-anon-types)
+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMakeTargets")
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs