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

tpm2-software / tpm2-abrmd / 775
80%

Build:
DEFAULT BRANCH: master
Ran 12 May 2018 01:24AM UTC
Jobs 1
Files 67
Run time 3s
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

pending completion
775

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

Jobs
ID Job ID Ran Files Coverage
1 775.1 12 May 2018 01:24AM UTC 0
81.78
Travis Job 775.1
Source Files on build 775
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #775
  • f586cd65 on github
  • Prev Build on master (#774)
  • Next Build on master (#779)
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