Skip to content

Commit

Permalink
inserted pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstiDE committed Aug 26, 2024
1 parent 56f8771 commit 3f97f68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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"),
Expand Down
1 change: 0 additions & 1 deletion src/tinyexpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ For log = natural log uncomment the next line. */
#include <stdio.h>
#include <ctype.h>
#include <limits.h>
#include <R.h>

#ifndef NAN
#define NAN (0.0/0.0)
Expand Down
6 changes: 3 additions & 3 deletions src/tinyexpr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3f97f68

Please sign in to comment.