schwehr / generic-sensor-format

Sonar Generic Sensor Format (gsf) codec
Other
13 stars 8 forks source link

coverity does not want to build gsf_indx.c #65

Closed schwehr closed 8 years ago

schwehr commented 8 years ago
[STATUS] Compiling gsf_indx.c
/Users/schwehr/src/cov-analysis-macosx-7.6.0/bin/cov-emit --dir=/Users/schwehr/src/generic-sensor-format/cov-int --ignore_path=/var/folders/00/137n0000h01000cxqpysvccm004cym/T/cov-schwehr/5e97b75858ef5d318d7f13d4b1dc15a9/cov-configure --ignore_path=/var/folders/00/137n0000h01000cxqpysvccm004cym/T/cov-schwehr/5e97b75858ef5d318d7f13d4b1dc15a9/cov-schwehr/e5f3a162023f6ba9a6cb816186defce1 -w --no_stdarg_builtin --incompat_proto --add_type_modifier=__coverity___fpreg --add_type_modifier=__coverity___float80 --add_type_modifier=__coverity___float128 --allow_implicit_builtin --no_predefined_cplusplus --gnu_version=50100 --no_predefines --restrict --gnu_carriage_return_line_terminator --no_multiline_string --no_trigraphs --c99 --allow__bool --pre_preinclude /Users/schwehr/src/generic-sensor-format/cov-int/emit/schwehr-macbookpro.roam.corp.google.com/config/7d352eb9e1c09146352f5c576a7c7503/gcc-config-0/coverity-macro-compat.h --pre_preinclude /Users/schwehr/src/generic-sensor-format/cov-int/emit/schwehr-macbookpro.roam.corp.google.com/config/7d352eb9e1c09146352f5c576a7c7503/gcc-config-0/coverity-compiler-compat.h --preinclude /Users/schwehr/src/cov-analysis-macosx-7.6.0/config/template-gcc-config-0/../user_nodefs.h --gcc --sys_include /sw/lib/gcc5/lib/gcc/x86_64-apple-darwin14.1.0/5.1.0/include --sys_include /sw/lib/gcc5/include --sys_include /sw/lib/gcc5/lib/gcc/x86_64-apple-darwin14.1.0/5.1.0/include-fixed --sys_include /usr/include --sys_include /System/Library/Frameworks --sys_include /Library/Frameworks -U__BLOCKS__ -D__coverity_undefine___BLOCKS__ -D__COVERITY_DISABLE_BUILTIN_DECLS -D__NO_INLINE__ --type_sizes=e16Pdlx8fi4s2 --type_alignments=e16Pdlx8fi4s2 --size_t_type=m --wchar_t_type=i --ptrdiff_t_type=l gsf_indx.c 
"/usr/include/unistd.h", line 650: error #59: function call is not allowed in
          a constant expression
  #if __has_include(<gethostuuid_private.h>)
      ^
"/usr/include/unistd.h", line 650: error #29: expected an expression
  #if __has_include(<gethostuuid_private.h>)
      ^
2 errors detected in the compilation of "gsf_indx.c".
Emit for file '/Users/schwehr/src/generic-sensor-format/src/gsf/gsf_indx.c' complete.
WARNING: cov-emit returned with code 1
schwehr commented 8 years ago

Solved with https://github.com/schwehr/generic-sensor-format/commit/aedb269c7dd18f95b3c55a361ea6520cbcb8c5da

I now build with clang and clang++, which should break travis-ci