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:
Joerg Wunsch 2013-09-02 20:30:09 +00:00
parent db1cce8bf4
commit 412a7be03e
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2013-09-02 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
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.
2013-09-02 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
bug #39794: warnings when building avrdude 6.0rc1 under CentOS 6.4

View File

@ -847,7 +847,7 @@ static int jtag3_initialize(PROGRAMMER * pgm, AVRPART * p)
struct mega_device_desc md;
LNODEID ln;
AVRMEM * m;
unsigned int flashsize;
unsigned int flashsize = 0;
memset(&md, 0, sizeof md);

View File

@ -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)