Compilation fixes for more recent compilers

This commit is contained in:
Guilhem Lavaux 2021-04-15 15:49:40 +02:00
parent f7df64c768
commit d8c321232d
3 changed files with 34 additions and 2 deletions

View file

@ -64,7 +64,6 @@ macro(configure_exec _source _destdir _destfile)
endmacro(configure_exec)
include(${CMAKE_SOURCE_DIR}/external/base_external.cmake)
include(${CMAKE_SOURCE_DIR}/external/external_build.cmake)
include(${CMAKE_SOURCE_DIR}/external/external_cosmotool.cmake)
include(${CMAKE_SOURCE_DIR}/external/external_python_build.cmake)

View file

@ -6,7 +6,8 @@ OPTION(SDF_SUPPORT "Set to Yes to activate support for SDF" ON)
IF(ENABLE_OPENMP)
IF (NOT OPENMP_FOUND)
MESSAGE(FATAL_ERROR "No known compiler option for enabling OpenMP")
MESSAGE(WARNING "No known compiler option for enabling OpenMP")
SET(ENABLE_OPENMP FALSE)
ENDIF(NOT OPENMP_FOUND)
ENDIF(ENABLE_OPENMP)

32
external/patch_sdf vendored
View file

@ -62,3 +62,35 @@
{
int int_value;
float float_value;
--- SDF-parse.c.old 2021-04-15 15:44:40.000000000 +0200
+++ SDF-parse.c 2021-04-15 15:45:48.000000000 +0200
@@ -87,8 +87,6 @@
#define LEXERROR 265
-
-
/* Copy the first part of user declarations. */
#line 1 "SDF-parse.y"
@@ -117,6 +115,9 @@
#define yydebug SDFyydebug
#define yynerrs SDFyynerrs
+extern int yylex(void);
+extern int Msg_on(int level);
+
#include <stdarg.h>
#include <inttypes.h>
#include <float.h>
--- SDFfuncs.c.old 2014-06-04 07:22:26.000000000 +0200
+++ SDFfuncs.c 2021-04-15 15:46:29.000000000 +0200
@@ -44,6 +44,8 @@
char SDFerrstring[256];
extern int SDFyyparse(void);
+extern void Msg_on(int);
+
int SDFdebug(int level)
{
sdf_debug = level;