mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-15 18:21:07 +00:00
bug #39794: warnings when building avrdude 6.0rc1 under CentOS 6.4
* pickit.c (usb_open_device): Use %p rather than %X to print "handle" which is a pointer * jtag3.c (jtag3_initialize): Initialize "flashsize" to be sure it proceeds with a valid value. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1197 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "avrdude.h"
|
||||
#include "avr.h"
|
||||
@@ -1167,7 +1168,7 @@ static int usb_open_device(struct usb_dev_handle **device, int vendor, int produ
|
||||
{
|
||||
if (verbose)
|
||||
{
|
||||
fprintf(stderr, "Device 0x%4.4X seemed to open OK.\n", (int)handle);
|
||||
fprintf(stderr, "Device %p seemed to open OK.\n", handle);
|
||||
}
|
||||
|
||||
if ((errorCode = usb_set_configuration(handle, 1)) < 0)
|
||||
|
||||
Reference in New Issue
Block a user