Merge pull request #2133 from stefanrueger/fix-pid-warning

Fix compiler warnings
This commit is contained in:
Stefan Rueger
2026-06-21 14:55:30 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -673,7 +673,7 @@ static int pickit5_open(PROGRAMMER *pgm, const char *port) {
pinfo.usbinfo.vid = pgm->usbvid? pgm->usbvid: USB_VENDOR_MICROCHIP;
pinfo.usbinfo.flags = PINFO_FL_SILENT;
if(numids >= 2) { // Valid VID:PID was specified in -P port
if(pinfo.usbinfo.vid != new_vid || pinfo.usbinfo.pid != new_pid)
if(pinfo.usbinfo.vid != new_vid || *(int *) ldata(lfirst(pgm->usbpid)) != new_pid)
pmsg_notice("overwriting VID:PID to %04x:%04x\n", new_vid, new_pid);
pinfo.usbinfo.vid = new_vid;
pinfo.usbinfo.pid = new_pid;

View File

@@ -83,7 +83,9 @@ extern "C" {
#if (_MSC_VER >= 1900)
#include <stdbool.h>
#else
#ifndef bool
#define bool int
#endif
#define false 0
#define true 1
#endif