Project

General

Profile

Actions

Bug #1193

closed

implicit-function-declaration warnings

Added by Simon Marchi over 4 years ago. Updated over 4 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/07/2019
Due date:
% Done:

0%

Estimated time:

Description

When building lttng-ust current master (04682184d7f67b02f73aa8f2581cfa2a67a81f74) with gcc 9.1.0, I get some -Wimplicit-function-declaration warnings diagnostics:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include/lttng -I../include -I../include -Wall -fno-strict-aliasing -Wall -Werror -MT lttng-ust-comm.lo -MD -MP -MF .deps/lttng-ust-comm.Tpo -c lttng-ust-comm.c  -fPIC -DPIC -o .libs/lttng-ust-comm.o
In file included from lttng-ust-comm.c:54:
tracepoint-internal.h: In function ‘tracepoint_synchronize_unregister’:
tracepoint-internal.h:53:2: error: implicit declaration of function ‘urcu_bp_synchronize_rcu’; did you mean ‘synchronize_rcu’? [-Werror=implicit-function-declaration]
   53 |  urcu_bp_synchronize_rcu();
      |  ^~~~~~~~~~~~~~~~~~~~~~~
      |  synchronize_rcu

I have liburcu 0.11.0 installed.

Actions #1

Updated by Simon Marchi over 4 years ago

I had some leftover files in /usr/local/include that interfered with the headers from the package. Removing them solved the issue, please mark as invalid.

Actions #2

Updated by Mathieu Desnoyers over 4 years ago

  • Status changed from New to Invalid
Actions

Also available in: Atom PDF