openocd/src/helper
Andrew MacIsaac 50e79d60ce Compilation Warnings on OS X 10.5
I received a number of "-Wshadow" related warnings (treated as errors) while
trying to build on OS X Leopard.  In addition, there were two miscellaneous
other warnings in the flash drivers.  Attached are two patches which correct
these issues and the commit messages to accompany them.

My system has the following configuration (taken from uname -a):

Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009;
root:xnu-1228.15.4~1/RELEASE_I386 i386

=== Werror_patch.txt Commit Message ===
compilation: fixes for -Wshadow warnings on OS X

These changes fix -Wshadow compilation warnings on OS X 10.5.8

Compiled with the following configure command:

../configure --prefix=/usr/local --enable-maintainer-mode --enable-jlink
--enable-ft2232_libftdi

=== flash_patch.txt Commit Message ===
compilation: fixes for flash driver warnings on OS X

These changes fix two compilation warnings on OS X 10.5.8:

../../../../src/flash/nor/at91sam3.c:2767: warning: redundant redeclaration
of 'at91sam3_flash'
../../../../src/flash/nor/at91sam3.c:101: warning: previous declaration of
'at91sam3_flash' was here

and

../../../../src/flash/nor/stmsmi.c:205: warning: format not a string literal
and no format arguments

Compiled with the following configure command:

../configure --prefix=/usr/local --enable-maintainer-mode --enable-jlink
--enable-ft2232_libftdi
===

Andrew
2010-12-29 22:16:28 +01:00
..
bin2char.c warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
binarybuffer.c BINARYBUFFER: review scope of data and functions 2010-04-10 21:54:37 +08:00
binarybuffer.h change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
command.c warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
command.h warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
configuration.c don't require 'openocd.cfg' to start 2010-01-05 13:32:39 -08:00
configuration.h change #include "command.h" to <helper/command.h> 2009-12-03 04:22:48 -08:00
fileio.c fileio: fileio_size() can now fail 2010-09-29 18:56:07 +02:00
fileio.h Compilation Warnings on OS X 10.5 2010-12-29 22:16:28 +01:00
ioutil_stubs.c stubs: buildfix 2009-12-02 15:24:14 -08:00
ioutil.c ioutil: fix internal fn names 2010-08-02 11:59:46 +02:00
ioutil.h remove BUILD_IOUTIL symbol 2009-12-02 13:26:26 -08:00
log.c log: remove hack to redirect logs when pipes are in use 2010-10-01 10:21:33 +02:00
log.h HELPER/LOG: review unused symbols 2010-04-10 22:25:22 +08:00
Makefile.am build: add common.mk 2010-11-18 14:05:56 +00:00
options.c gdbderver: fix gdb pipe startup overflow 2010-10-05 15:00:40 +01:00
replacements.c safer conversion to HANDLER on MinGW-W64 2009-10-17 22:18:38 -07:00
replacements.h ARM semihosting: win32 and cygwin fixes 2010-01-28 21:05:09 +00:00
startup.tcl startup: removed capture_catch 2010-09-20 20:45:48 +02:00
system.h Clang buildfixes 2010-01-29 00:02:12 -08:00
time_support_common.c ecos: crisper implementation of timeval_ms() 2009-12-16 08:15:05 +01:00
time_support_ecos.c ecos: crisper implementation of timeval_ms() 2009-12-16 08:15:05 +01:00
time_support.c TIME_SUPPORT: review unused symbols 2010-04-10 19:25:32 +08:00
time_support.h TIME_SUPPORT: review unused symbols 2010-04-10 19:25:32 +08:00
types.h warnings: fix alignment warnings 2010-09-20 13:12:35 +02:00
util.c util: ms command to calculate length of operations 2010-08-01 09:35:58 +02:00
util.h util: ms command to calculate length of operations 2010-08-01 09:35:58 +02:00