• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tpm2-software / tpm2-abrmd / 775 / 1
80%
master: 80%

Build:
DEFAULT BRANCH: master
Ran 12 May 2018 01:24AM UTC
Files 67
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 May 2018 01:19AM UTC coverage: 81.784%. Remained the same
775.1

push

travis-ci

flihp
build: Disable GCC 8 -Wcast-function-type warning

GCC 8 introduces a -Wcast-function-type warning, that warns about type casts
that changes functions signatures. The C standard says that function pointer
of any type may be converted to a pointer to a function of another type and
back again, but calling the converted pointer is an undefined behaviour.

The problem is that GLib relies on this undefined behaviour and type casting
between different functions signatures is quite common. For example, this is
a compile error that happens because the command_source_on_input_ready which
is a function of type GPollableSourceFunc, is casted to GSourceFunc:

  CC       src/src_libutil_la-util.lo
src/command-source.c: In function ‘command_source_on_new_connection’:
src/command-source.c:287:28: error: cast between incompatible function types from ‘gboolean (*)(GInputStream *, void *)’ {aka ‘int (*)(struct _GInputStream *, void *)’} to ‘gboolean (*)(void *)’ {aka ‘int (*)(void *)’} [-Werror=cast-function-type]
                            (GSourceFunc)command_source_on_input_ready,
                            ^
cc1: all warnings being treated as errors
make[1]: *** [Makefile:2328: src/src_libutil_la-command-source.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /usr/include/glib-2.0/glib/glist.h:32,
                 from /usr/include/glib-2.0/glib/ghash.h:33,
                 from /usr/include/glib-2.0/glib.h:50,
                 from src/util.h:30,
                 from src/tcti-dynamic.c:31:
src/tcti-dynamic.c: In function ‘tcti_dynamic_finalize’:
/usr/include/glib-2.0/glib/gmem.h:120:31: error: cast between incompatible function types from ‘int (*)(void *)’ to ‘void (*)(void *)’ [-Werror=cast-function-type]
     GDestroyNotify _destroy = (GDestroyNotify) (destroy);                      \
                               ^
src/tcti-dynamic.c:108:5: note: in expansion of macro ‘g_clear_pointer’
     g_clear_pointer (&tcti_dynamic->tcti_... (continued)

2851 of 3486 relevant lines covered (81.78%)

377.29 hits per line

Source Files on job 775.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 18
  • Travis Job 775.1
  • f586cd65 on github
  • Prev Job for on master (#774.1)
  • Next Job for on master (#779.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc