diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2024-11-17 14:56:04 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2024-11-17 14:56:23 -0800 |
commit | f1c3e3cc492cc629623a9783d5f2d43113c0e1ac (patch) | |
tree | 3050fc0e0fccb714b9eae19bf95c2cf6da199950 /dev-util | |
parent | dev-util/usb-robot: build fix for newer autoconf (diff) | |
download | gentoo-f1c3e3cc492cc629623a9783d5f2d43113c0e1ac.tar.gz gentoo-f1c3e3cc492cc629623a9783d5f2d43113c0e1ac.tar.bz2 gentoo-f1c3e3cc492cc629623a9783d5f2d43113c0e1ac.zip |
dev-util/usb-robot: fix minor clang warning
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch | 14 | ||||
-rw-r--r-- | dev-util/usb-robot/metadata.xml | 4 | ||||
-rw-r--r-- | dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild | 5 |
3 files changed, 21 insertions, 2 deletions
diff --git a/dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch b/dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch new file mode 100644 index 000000000000..9a09d6af5266 --- /dev/null +++ b/dev-util/usb-robot/files/usb-robot-0.2.0-clang-warn.patch @@ -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(); + } + diff --git a/dev-util/usb-robot/metadata.xml b/dev-util/usb-robot/metadata.xml index 8a3bee1e60c3..dbba33fa9213 100644 --- a/dev-util/usb-robot/metadata.xml +++ b/dev-util/usb-robot/metadata.xml @@ -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> diff --git a/dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild b/dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild index faea01758811..89c639ec9d49 100644 --- a/dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild +++ b/dev-util/usb-robot/usb-robot-0.2.0-r1.ebuild @@ -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 |