Browse Source

[core] workaround Coverity cov-build bug with gcc7

workaround Coverity cov-build bug with gcc 7
where Coverity does not support _Floatx typedefs

https://stackoverflow.com/questions/50434236/coverity-scan-fails-to-build-stdlib-h-with-gnu-source-defined
personal/stbuehler/fix-fdevent
Glenn Strauss 3 years ago
parent
commit
82dcb34c73
  1. 8
      src/first.h
  2. 8
      src/lemon.c

8
src/first.h

@ -13,6 +13,14 @@
#define __STDC_WANT_LIB_EXT1__ 1
#endif
#ifdef __COVERITY__
#define _Float128 long double
#define _Float64x long double
#define _Float64 double
#define _Float32x double
#define _Float32 float
#endif
#include <sys/types.h>
#include <stddef.h>

8
src/lemon.c

@ -2,6 +2,14 @@
#define _GNU_SOURCE
#endif
#ifdef __COVERITY__
#define _Float128 long double
#define _Float64x long double
#define _Float64 double
#define _Float32x double
#define _Float32 float
#endif
/*
** This file contains all sources (including headers) to the LEMON
** LALR(1) parser generator. The sources have been combined into a

Loading…
Cancel
Save