From bce1541026cd346911e10ac2d5dda9e840edbcc9 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Wed, 22 Apr 2015 15:41:17 +0200 Subject: [PATCH] Fixed: warning: variable 'rcode' set but not used --- examples/USB_desc/USB_desc.ino | 2 +- examples/hub_demo/hub_demo.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/USB_desc/USB_desc.ino b/examples/USB_desc/USB_desc.ino index 0ae15663..1af80340 100644 --- a/examples/USB_desc/USB_desc.ino +++ b/examples/USB_desc/USB_desc.ino @@ -240,7 +240,7 @@ byte getconfdescr( byte addr, byte conf ) }//switch( descr_type buf_ptr = ( buf_ptr + descr_length ); //advance buffer pointer }//while( buf_ptr <=... - return( 0 ); + return ( rcode ); } /* prints hex numbers with leading zeroes */ // copyright, Peter H Anderson, Baltimore, MD, Nov, '07 diff --git a/examples/hub_demo/hub_demo.ino b/examples/hub_demo/hub_demo.ino index 20685067..e8dc6ab9 100644 --- a/examples/hub_demo/hub_demo.ino +++ b/examples/hub_demo/hub_demo.ino @@ -236,7 +236,7 @@ byte getconfdescr( byte addr, byte conf ) }//switch( descr_type buf_ptr = ( buf_ptr + descr_length ); //advance buffer pointer }//while( buf_ptr <=... - return( 0 ); + return ( rcode ); } /* prints hex numbers with leading zeroes */ // copyright, Peter H Anderson, Baltimore, MD, Nov, '07