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:
parent
db1cce8bf4
commit
412a7be03e
|
@ -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>
|
2013-09-02 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
bug #39794: warnings when building avrdude 6.0rc1 under CentOS 6.4
|
bug #39794: warnings when building avrdude 6.0rc1 under CentOS 6.4
|
||||||
|
|
2
jtag3.c
2
jtag3.c
|
@ -847,7 +847,7 @@ static int jtag3_initialize(PROGRAMMER * pgm, AVRPART * p)
|
||||||
struct mega_device_desc md;
|
struct mega_device_desc md;
|
||||||
LNODEID ln;
|
LNODEID ln;
|
||||||
AVRMEM * m;
|
AVRMEM * m;
|
||||||
unsigned int flashsize;
|
unsigned int flashsize = 0;
|
||||||
|
|
||||||
memset(&md, 0, sizeof md);
|
memset(&md, 0, sizeof md);
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "avrdude.h"
|
#include "avrdude.h"
|
||||||
#include "avr.h"
|
#include "avr.h"
|
||||||
|
@ -1167,7 +1168,7 @@ static int usb_open_device(struct usb_dev_handle **device, int vendor, int produ
|
||||||
{
|
{
|
||||||
if (verbose)
|
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)
|
if ((errorCode = usb_set_configuration(handle, 1)) < 0)
|
||||||
|
|
Loading…
Reference in New Issue