<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/4770" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-08-22T22:32:03+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/4770</id>

		<entry>
		<author><name><![CDATA[Vegar]]></name></author>
		<updated>2010-08-22T22:32:03+02:00</updated>

		<published>2010-08-22T22:32:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4770&amp;p=15652#p15652</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4770&amp;p=15652#p15652"/>
		<title type="html"><![CDATA[Patch: Remove warning when USB_RESET_HOOK is not defined]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4770&amp;p=15652#p15652"><![CDATA[
When USB_RESET_HOOK is not defined, gcc warns about an unused parameter in usbHandleResetHook:<br /><blockquote class="uncited"><div>usbdrv/usbdrv.c: In function ‘usbHandleResetHook’:<br />usbdrv/usbdrv.c:550: warning: unused parameter ‘notResetState’</div></blockquote><br /><br />This prevents me from using -Werror in my makefile (-Werror makes gcc treat warnings as errors, which I find very convenient).<br /><br />The following two patches add __attribute__((unused)) to the notResetState parameter when USB_RESET_HOOK is undefined. There are two patches because I couldn't decide which way looks cleanest (they both have the same result), but I'm leaning towards reset2.diff<br /><br /><!-- m --><a class="postlink" href="http://vegar.beplacid.net/~vegar/files/reset.diff">http://vegar.beplacid.net/~vegar/files/reset.diff</a><!-- m --><br /><!-- m --><a class="postlink" href="http://vegar.beplacid.net/~vegar/files/reset2.diff">http://vegar.beplacid.net/~vegar/files/reset2.diff</a><!-- m --><br /><br />Apply with 'patch -p0 &lt; reset.diff' in the directory that contains the usbdrv/ directory.<br /><br />I'm posting it here because I'm not sure where patches should be posted, and perhaps others can use this too.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4263">Vegar</a> — Sun Aug 22, 2010 10:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
