Permalink
Browse files

new patch for compiling libusb: disable the use of -Werror since the

compilation generates warnings (when compiled on Snow Leopard 64-bits)

/tmp/libusb/Sources/libusb/darwin.c: In function ‘usb_get_next_device’:
/tmp/libusb/Sources/libusb/darwin.c:264: warning: passing argument 5 of
‘IOCreatePlugInInterfaceForService’ from incompatible pointer type
/tmp/libusb/Sources/libusb/darwin.c: In function ‘claim_interface’:
/tmp/libusb/Sources/libusb/darwin.c:567: warning: passing argument 5 of
‘IOCreatePlugInInterfaceForService’ from incompatible pointer type
/tmp/libusb/Sources/libusb/darwin.c: In function ‘usb_os_find_devices’:
/tmp/libusb/Sources/libusb/darwin.c:1137: warning: format ‘%08lx’
expects type ‘long unsigned int’, but argument 3 has type ‘UInt32’
/tmp/libusb/Sources/libusb/darwin.c:1137: warning: format ‘%08lx’
expects type ‘long unsigned int’, but argument 4 has type ‘UInt32’
/tmp/libusb/Sources/libusb/darwin.c:1189: warning: format ‘%08lx’
expects type ‘long unsigned int’, but argument 5 has type ‘UInt32’

git-svn-id: https://svn.macosforge.org/repository/smartcardservices/trunk@100 6beaa694-74da-4ea8-86b6-2f242058810b
  • Loading branch information...
Ludovic Rousseau
Ludovic Rousseau committed Jan 12, 2010
1 parent c527c65 commit b60227ace41838d5424b6e7f5e60c22dfb7c263f
Showing with 12 additions and 1 deletion.
  1. +1 −1 SmartcardCCID/libusb/Makefile
  2. +11 −0 SmartcardCCID/libusb/files/WithoutWerror.patch
@@ -14,7 +14,7 @@ AEP_Version = 0.1.13b
AEP_ProjVers = $(AEP_Project)-$(AEP_Version)
AEP_Filename = $(AEP_ProjVers).tar.gz
AEP_ExtractDir = $(AEP_ProjVers)
AEP_Patches = FixConfigureAddCPP.patch skipConfigure.patch #configure.diff gcc42.diff
AEP_Patches = FixConfigureAddCPP.patch skipConfigure.patch WithoutWerror.patch #configure.diff gcc42.diff
#svn co -r658 https://libusb.svn.sourceforge.net/svnroot/libusb/trunk

# Extract the source.
@@ -0,0 +1,11 @@
--- Makefile.am.orig 2008-07-23 20:41:33.000000000 +0200
+++ Makefile.am 2010-01-12 15:15:03.000000000 +0100
@@ -6,7 +6,7 @@

SUBDIRS = . tests doc

-AM_CFLAGS = -Werror
+AM_CFLAGS =

configincludedir = $(pkglibdir)/include

0 comments on commit b60227a

Please sign in to comment.