mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-util/usb-robot: fix minor clang warning
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
14
dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch
Normal file
14
dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff '--color=auto' -NuarwbB usb-robot-0.2.0.orig/control.c usb-robot-0.2.0/control.c
|
||||
--- usb-robot-0.2.0.orig/control.c 2001-02-22 21:18:14.000000000 -0800
|
||||
+++ usb-robot-0.2.0/control.c 2024-11-17 14:53:27.633932807 -0800
|
||||
@@ -457,8 +457,8 @@
|
||||
|
||||
switch(dir)
|
||||
{
|
||||
- case dir_in: assert( data = malloc( size ) );break;
|
||||
- case dir_out: data = context->read( context, size );break;
|
||||
+ case dir_in: data = malloc( size ); assert(data) ;break;
|
||||
+ case dir_out: data = context->read( context, size ); assert(data) ;break;
|
||||
default: cant_get_here();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<maintainer type="person">
|
||||
<email>robbat2@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">usb-robot</remote-id>
|
||||
</upstream>
|
||||
|
||||
@@ -16,7 +16,10 @@ KEYWORDS="amd64 ppc x86"
|
||||
DEPEND="virtual/libusb:0
|
||||
sys-libs/readline:="
|
||||
RDEPEND="${DEPEND}"
|
||||
PATCHES=( "${FILESDIR}/usb-robot-0.2.0-configure.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/usb-robot-0.2.0-configure.patch"
|
||||
"${FILESDIR}/usb-robot-0.2.0-clang-warn.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
Reference in New Issue
Block a user