From 3f97f68a0622cf4e33fe9dee4e8c06264c264b51 Mon Sep 17 00:00:00 2001 From: KonstiDE Date: Mon, 26 Aug 2024 12:54:48 +0200 Subject: [PATCH] inserted pragma --- DESCRIPTION | 4 ++-- src/tinyexpr.c | 1 - src/tinyexpr.h | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index f1dea6cf..023d39b8 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: RStoolbox Type: Package Title: Remote Sensing Data Analysis -Version: 1.0.0 -Date: 2024-04-24 +Version: 1.0.1 +Date: 2024-08-26 Authors@R: c( person("Benjamin", "Leutner", role= "aut", email="rstoolboxpackage@gmail.com", comment = c(ORCID = "0000-0002-6893-2002")), person("Ned", "Horning", role ="aut", email="horning@amnh.org"), diff --git a/src/tinyexpr.c b/src/tinyexpr.c index 0ec006a1..3e7ba4fe 100644 --- a/src/tinyexpr.c +++ b/src/tinyexpr.c @@ -42,7 +42,6 @@ For log = natural log uncomment the next line. */ #include #include #include -#include #ifndef NAN #define NAN (0.0/0.0) diff --git a/src/tinyexpr.h b/src/tinyexpr.h index 6d3d4b06..a826c8b1 100644 --- a/src/tinyexpr.h +++ b/src/tinyexpr.h @@ -36,7 +36,10 @@ extern "C" { typedef struct te_expr { int type; union {double value; const double *bound; const void *function;}; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" void *parameters[]; +#pragma GCC diagnostic pop } te_expr; @@ -72,9 +75,6 @@ te_expr *te_compile(const char *expression, const te_variable *variables, int va /* Evaluates the expression. */ double te_eval(const te_expr *n); -/* Prints debugging information on the syntax tree. */ -void te_print(const te_expr *n); - /* Frees the expression. */ /* This is safe to call on NULL pointers. */ void te_free(te_expr *n);