Skip to content

directfb: suppress compiler warning from directfb headers

On debian sid, directfb 1.7.7

[1736/2361] Compiling C object subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.p/gstdfb.c.o
In file included from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/waitqueue.h:41:25: warning: redundant redeclaration of ‘direct_waitqueue_init’ [-Wredundant-decls]
   41 | DirectResult DIRECT_API direct_waitqueue_init        ( DirectWaitQueue *queue );
      |                         ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/os/types.h:63,
                 from /usr/include/directfb/direct/os/waitqueue.h:36,
                 from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/linux/glibc/waitqueue.h:55:1: note: previous definition of ‘direct_waitqueue_init’ was here
   55 | direct_waitqueue_init( DirectWaitQueue *queue )
      | ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/waitqueue.h:43:25: warning: redundant redeclaration of ‘direct_waitqueue_wait’ [-Wredundant-decls]
   43 | DirectResult DIRECT_API direct_waitqueue_wait        ( DirectWaitQueue *queue, DirectMutex *mutex );
      |                         ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/os/types.h:63,
                 from /usr/include/directfb/direct/os/waitqueue.h:36,
                 from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/linux/glibc/waitqueue.h:64:1: note: previous definition of ‘direct_waitqueue_wait’ was here
   64 | direct_waitqueue_wait( DirectWaitQueue *queue, DirectMutex *mutex )
      | ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/waitqueue.h:45:25: warning: redundant redeclaration of ‘direct_waitqueue_wait_timeout’ [-Wredundant-decls]
   45 | DirectResult DIRECT_API direct_waitqueue_wait_timeout( DirectWaitQueue *queue, DirectMutex *mutex, unsigned long micros );
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/os/types.h:63,
                 from /usr/include/directfb/direct/os/waitqueue.h:36,
                 from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/linux/glibc/waitqueue.h:73:1: note: previous definition of ‘direct_waitqueue_wait_timeout’ was here
   73 | direct_waitqueue_wait_timeout( DirectWaitQueue *queue, DirectMutex *mutex, unsigned long micros )
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/waitqueue.h:47:25: warning: redundant redeclaration of ‘direct_waitqueue_signal’ [-Wredundant-decls]
   47 | DirectResult DIRECT_API direct_waitqueue_signal      ( DirectWaitQueue *queue );
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/os/types.h:63,
                 from /usr/include/directfb/direct/os/waitqueue.h:36,
                 from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/linux/glibc/waitqueue.h:95:1: note: previous definition of ‘direct_waitqueue_signal’ was here
   95 | direct_waitqueue_signal( DirectWaitQueue *queue )
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/waitqueue.h:49:25: warning: redundant redeclaration of ‘direct_waitqueue_broadcast’ [-Wredundant-decls]
   49 | DirectResult DIRECT_API direct_waitqueue_broadcast   ( DirectWaitQueue *queue );
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/os/types.h:63,
                 from /usr/include/directfb/direct/os/waitqueue.h:36,
                 from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/linux/glibc/waitqueue.h:104:1: note: previous definition of ‘direct_waitqueue_broadcast’ was here
  104 | direct_waitqueue_broadcast( DirectWaitQueue *queue )
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/waitqueue.h:51:25: warning: redundant redeclaration of ‘direct_waitqueue_deinit’ [-Wredundant-decls]
   51 | DirectResult DIRECT_API direct_waitqueue_deinit      ( DirectWaitQueue *queue );
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/directfb/direct/os/types.h:63,
                 from /usr/include/directfb/direct/os/waitqueue.h:36,
                 from /usr/include/directfb/direct/thread.h:38,
                 from /usr/include/directfb/direct/debug.h:43,
                 from /usr/include/directfb/direct/interface.h:36,
                 from /usr/include/directfb/directfb.h:49,
                 from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/tests/examples/directfb/gstdfb.c:38:
/usr/include/directfb/direct/os/linux/glibc/waitqueue.h:113:1: note: previous definition of ‘direct_waitqueue_deinit’ was here
  113 | direct_waitqueue_deinit( DirectWaitQueue *queue )
      | ^~~~~~~~~~~~~~~~~~~~~~~
Edited by Tim-Philipp Müller

Merge request reports

Loading