[Bug 629244] [opencv] Add motion detection element

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon May 2 06:58:30 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=629244
  GStreamer | gst-plugins-bad | git

--- Comment #31 from Nicola <lists at svrinformatica.it> 2011-05-02 13:58:25 UTC ---
Hi Robert,

I noted this warnings while compiling motioncells (the element works fine, just
warnings):

  CC     libgstopencv_la-gstmotioncells.lo
gstmotioncells.c: In function ‘gst_motioncells_set_property’:
gstmotioncells.c:364:9: warning: passing argument 1 of ‘gst_element_get_state’
from incompatible pointer type
/usr/include/gstreamer-0.10/gst/gstelement.h:807:25: note: expected ‘struct
GstElement *’ but argument is of type ‘struct Gstmotioncells *’
gstmotioncells.c:375:11: warning: passing argument 1 of ‘gst_element_get_state’
from incompatible pointer type
/usr/include/gstreamer-0.10/gst/gstelement.h:807:25: note: expected ‘struct
GstElement *’ but argument is of type ‘struct Gstmotioncells *’
gstmotioncells.c:407:13: warning: passing argument 1 of ‘gst_element_get_state’
from incompatible pointer type
/usr/include/gstreamer-0.10/gst/gstelement.h:807:25: note: expected ‘struct
GstElement *’ but argument is of type ‘struct Gstmotioncells *’
gstmotioncells.c: In function ‘gst_motioncells_chain’:
gstmotioncells.c:769:3: warning: suggest parentheses around ‘&&’ within ‘||’
gstmotioncells.c:789:3: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:794:3: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:806:4: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:815:4: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:822:3: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:834:4: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:836:4: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:843:4: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:849:5: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:851:5: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:860:5: warning: ISO C90 forbids mixed declarations and code
gstmotioncells.c:864:6: warning: ISO C90 forbids mixed declarations and code
  CXX    libgstopencv_la-motioncells_wrapper.lo
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wold-style-definition" is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC
but not for C++
motioncells_wrapper.cpp: In function ‘int searchIdx(int)’:
motioncells_wrapper.cpp:59:39: warning: comparison between signed and unsigned
integer expressions
motioncells_wrapper.cpp: In function ‘int motion_cells_free(int)’:
motioncells_wrapper.cpp:93:1: warning: no return statement in function
returning non-void
motioncells_wrapper.cpp: In function ‘int searchIdx(int)’:
motioncells_wrapper.cpp:66:1: warning: control reaches end of non-void function
  CXX    libgstopencv_la-MotionCells.lo
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid
for C/ObjC but not for C++
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wold-style-definition" is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC
but not for C++
MotionCells.cpp: In function ‘uint64_t ntohl64(uint64_t)’:
MotionCells.cpp:22:10: warning: no previous declaration for ‘uint64_t
ntohl64(uint64_t)’
MotionCells.cpp: In function ‘uint64_t htonl64(uint64_t)’:
MotionCells.cpp:34:10: warning: no previous declaration for ‘uint64_t
htonl64(uint64_t)’

the fixes seems trivial (cast, declare variable and then assign values ecc..)
do you need help? I have same spare time the next weekend,

Nicola

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list