Attached patch unbreaks build on MacOS X (I guess on *BSD too): - stdlib.h should be included instead of malloc.h for better portability - Eliminate "r could be used uninitialized" gcc warning
-- gonzo
Index: src/helper/membuf.c =================================================================== --- src/helper/membuf.c (revision 2400) +++ src/helper/membuf.c (working copy) @@ -20,7 +20,7 @@ #include <stdio.h> #include <stdarg.h> -#include <malloc.h> +#include <stdlib.h> #include <string.h> #include "membuf.h" Index: src/flash/at91sam3.c =================================================================== --- src/flash/at91sam3.c (revision 2400) +++ src/flash/at91sam3.c (working copy) @@ -2385,6 +2385,7 @@ if (0 == strcmp("show", argv[0])) { if (who == -1) { showall: + r = ERROR_OK; for (x = 0 ; x < pChip->details.n_gpnvms ; x++) { r = FLASHD_GetGPNVM(&(pChip->details.bank[0]), x, &v); if (r != ERROR_OK) {
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development