From 871b5f0c9575c4ece13fe7316913836dc6a59aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 24 Mar 2023 15:59:17 +0100 Subject: [PATCH] Fix FTBFS due to incomplete declaration of main function in CMake tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- ConfigureChecks.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index b42d290..20de3d0 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -41,7 +41,7 @@ endif() check_cxx_source_compiles(" #include #include <${SWORD_INCLUDE_DIRS}/sysdata.h> - main() {} + int main() {} " SWORD_WITHOUT_SANE_USERSPACE_TYPES ) @@ -50,7 +50,7 @@ if( NOT SWORD_WITHOUT_SANE_USERSPACE_TYPES ) #define __SANE_USERSPACE_TYPES__ #include #include <${SWORD_INCLUDE_DIRS}/sysdata.h> - main() {} + int main() {} " SWORD_WITH_SANE_USERSPACE_TYPES )