[PATCH 00/42] Warning Removal Patch Series

Joel Sherrill joel.sherrill at oarcorp.com
Mon Mar 23 14:38:58 UTC 2015


This series of patches removes all but a few warnings from RTEMS. There
are some warnings which are false positives from GCC. But there are also
some warnings which require a newlib patch for inttypes.h that I just 
committed and others which are flase positives in gcc versions less
than 4.9. In particular the h8300 has warnings which disappear with
a newer gcc.

Most of these patches are very small and intentionally so. I didn't
want to combine them. Each is single purpose and up for discussion.

Please review and I will push later.

--joel

Joel Sherrill (42):
  cpukit/libmisc/shell/main_df.c: Eliminate printf() format warning
  cpukit/libmisc/shell/hexdump-conv.c: Eliminate printf() format warning
  tools/build/rtems-test-check: Support multiple include files
  testsuites/testdata: Add sets to disable all jffs2 and mrfs tests
  avrtest: Disable jffs2 and mrfs tests
  h8sim: Disable jffs2 and mrfs tests
  m32cbsp: Disable jffs2 and mrfs tests
  testsuites/psxtests/psxsignal03/init.c: Fix line wrap
  avrtest-testsuite.tcfg: Add tests with data size issues
  h8sim*-testsuite.tcfg: Add tests with data size issues
  m32csim-testsuite.tcfg: Add tests with data size issues
  libcrypt/crypt-md5.c: Fix overflow issues
  imfs.h: Add cast to remove warning for pointer/integer size mismatch
  capture/capture_support.c: Fix printf() warning and formatting
  dummy/default-configuration.c: Tune configuration down for small
    targets
  shell/utils-cp.c: Avoid redefinition of TIMESPEC_TO_TIMEVAL
  malloctest/init.c: Fix use uninitialized warning
  psxtests/psx15/init.c: Correct printf() warning
  psxconfig01/init.c: Correct pointer/integer size warning
  sptests/sp12/pritask.c: Correct printf() warning
  sptests/sp13/system.h: Fine tune message buffer configuration to avoid
    integer overflow
  sptests/sp20: Reduce memory requirements
  sptests/sp33/init.c: Correct printf() warning
  sptests/sp34/changepri.c: Correct printf() warning
  sptests/spatomic01/init.c: Avoid integer overflow
  sptests/spedfsched02: Reduce stack space usage to fix on smaller
    targets
  sptests/spwatchdog/init.c: Avoid integer overflow
  rtems/score/tls.h: Add casts to eliminate warnings on some targets
  sptls01/init.c: Use larger data types for values
  sptls03/init.c: Make type and constants uint32_t to avoid overflow
    warnings
  tools/build/binpatch.c: Include <unistd.h> for getopt()
  lpc176x/console/console-config.c: Conditionalize code to avoid unused
    warnings
  nds/libnds/source/arm7/clock.c: Avoid over indexing array
  nds/libnds/source/arm9/image.c: Add needed cast
  mrm332/console/sci.c: Make routines static
  tools/cpu/nios2/ptf.c: Add include of <ctype.h>
  moxie machine type not supported by rtems-syms. See #2213
  libdl/rtl-mdreloc-moxie.c: Fix printf() format warnings
  samples/minimum/init.c: Add cast to avoid warning
  testsuites/sptests/sp54/init.c: Add cast to avoid warning
  libdl/rtl-shell.c: Adjust printf() format for off_t based on target
  cpukit/libmisc/utf8proc/utf8proc.c: Avoid overflow

 .../libbsp/arm/lpc176x/console/console-config.c    |  4 +++
 .../lib/libbsp/arm/nds/libnds/source/arm7/clock.c  |  2 +-
 .../lib/libbsp/arm/nds/libnds/source/arm9/image.c  |  2 +-
 .../avr/avrtest/make/custom/avrtest-testsuite.tcfg |  7 +++++
 .../h8300/h8sim/make/custom/h8sim-testsuite.tcfg   |  6 ++++-
 .../h8300/h8sim/make/custom/h8sxsim-testsuite.tcfg |  8 ++++++
 .../m32cbsp/make/custom/m32csim-testsuite.tcfg     | 15 +++++------
 c/src/lib/libbsp/m68k/mrm332/console/sci.c         |  8 +++---
 .../moxiesim/make/custom/moxiesim-testsuite.tcfg   |  1 +
 cpukit/libcrypt/crypt-md5.c                        | 12 +++++++++
 cpukit/libdl/rtl-mdreloc-mips.c                    |  8 +++---
 cpukit/libdl/rtl-mdreloc-moxie.c                   |  2 +-
 cpukit/libdl/rtl-shell.c                           | 14 +++++-----
 cpukit/libfs/src/imfs/imfs.h                       |  2 +-
 cpukit/libmisc/capture/capture_support.c           | 24 +++++++++--------
 cpukit/libmisc/dummy/default-configuration.c       | 14 +++++++---
 cpukit/libmisc/shell/hexdump-conv.c                |  6 ++++-
 cpukit/libmisc/shell/main_df.c                     |  5 ++--
 cpukit/libmisc/shell/utils-cp.c                    |  9 +++++++
 cpukit/libmisc/utf8proc/utf8proc.c                 |  5 ++++
 cpukit/score/include/rtems/score/tls.h             | 12 ++++++---
 testsuites/libtests/malloctest/init.c              |  3 +++
 testsuites/psxtests/psx15/init.c                   |  4 ++-
 testsuites/psxtests/psxconfig01/init.c             |  2 +-
 testsuites/psxtests/psxsignal03/init.c             |  6 ++++-
 testsuites/samples/minimum/init.c                  |  2 +-
 testsuites/sptests/sp12/pritask.c                  |  7 ++---
 testsuites/sptests/sp13/system.h                   | 30 ++++++++++++----------
 testsuites/sptests/sp20/init.c                     |  2 +-
 testsuites/sptests/sp20/system.h                   |  2 --
 testsuites/sptests/sp33/init.c                     |  5 ++--
 testsuites/sptests/sp34/changepri.c                |  9 ++++---
 testsuites/sptests/sp54/init.c                     |  2 +-
 testsuites/sptests/spatomic01/init.c               | 19 ++++++++------
 testsuites/sptests/spedfsched02/init.c             |  2 +-
 testsuites/sptests/spedfsched02/system.h           |  2 --
 testsuites/sptests/sptls01/init.c                  | 10 ++++----
 testsuites/sptests/sptls03/init.c                  |  8 +++---
 testsuites/sptests/spwatchdog/init.c               | 10 ++++++--
 testsuites/testdata/disable-jffs2-tests.tcfg       | 12 +++++++++
 testsuites/testdata/disable-mrfs-tests.tcfg        | 13 ++++++++++
 tools/build/binpatch.c                             |  1 +
 tools/build/rtems-test-check                       |  2 +-
 tools/cpu/nios2/ptf.c                              |  1 +
 44 files changed, 220 insertions(+), 100 deletions(-)
 create mode 100644 testsuites/testdata/disable-jffs2-tests.tcfg
 create mode 100644 testsuites/testdata/disable-mrfs-tests.tcfg

-- 
1.9.3



More information about the devel mailing list