- fix rpmlint error no-return-in-nonvoid-function

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libva?expand=0&rev=37
This commit is contained in:
Kshitij Kulshreshtha 2012-10-18 11:10:01 +00:00 committed by Git OBS Bridge
parent 0cc5b71ea1
commit 7218222bc8
3 changed files with 20 additions and 0 deletions

View File

@ -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());
}

View File

@ -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

View File

@ -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