diff --git a/libva-fix-rpmlint-error-no-return-in-non-void.patch b/libva-fix-rpmlint-error-no-return-in-non-void.patch new file mode 100644 index 0000000..bb2644f --- /dev/null +++ b/libva-fix-rpmlint-error-no-return-in-non-void.patch @@ -0,0 +1,13 @@ +diff --git a/test/v4l_h264/decode/TCPSocketServer.cpp b/test/v4l_h264/decode/TCPSocketServer.cpp +index ad33d77..287bf27 100644 +--- a/test/v4l_h264/decode/TCPSocketServer.cpp ++++ b/test/v4l_h264/decode/TCPSocketServer.cpp +@@ -150,7 +150,7 @@ ssize_t TCPSocketServer::send(const void *buffer, const int &bufferLen) throw (s + + ssize_t TCPSocketServer::send(const string &message) throw (std::runtime_error) + { +- send(message.c_str(), message.length()); ++ return send(message.c_str(), message.length()); + } + + diff --git a/libva.changes b/libva.changes index 16ad873..94dfab8 100644 --- a/libva.changes +++ b/libva.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 18 11:09:09 UTC 2012 - kkhere.geo@gmail.com + +- fix rpmlint error no-return-in-nonvoid-function + ------------------------------------------------------------------- Thu Oct 18 10:59:21 UTC 2012 - kkhere.geo@gmail.com diff --git a/libva.spec b/libva.spec index f6a6759..2973a00 100644 --- a/libva.spec +++ b/libva.spec @@ -26,6 +26,7 @@ License: MIT Group: System/Libraries Url: http://freedesktop.org/wiki/Software/vaapi Source0: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.xz +Patch1: libva-fix-rpmlint-error-no-return-in-non-void.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: Mesa-devel BuildRequires: gcc-c++ @@ -143,6 +144,7 @@ This contains the dummy driver. %prep %setup -q +%patch1 -p1 %build [ -d m4 ] || mkdir m4