COMP: Dead code

Coverity detected three defects:
Code after exceptions cannot be reached.
m_Orientation was not being initialized.
Failed to check function for zero return that might cause divide by 0.

Change-Id: I9d4a349a6f82e6ce4f148ebb5a95d348f7a4fa9e
COMP: Fix C++11 conversion warning.

This patch addresses the following warning:
itkChangeInformationImageFilterTest.cxx:150:75: warning: narrowing
conversion of '1.0e+1' from 'double' to 'itk::Image<float,
3u>::OffsetValueType {aka long int}' inside { } is ill-formed in C++11

This patch changed the elements in the array constructor to be
implicitly of type int, allowing safe promotion to other the
OffsetValueType.

Change-Id: I9eda16f21d2151c8e810b87982300206645b1392
Merge topic 'Coverity_itkTIFFImageIO'

1380b1c COMP: Dead code
STYLE: Use double type in array initializer list for spacing

Change-Id: Ic0f638e00f8118ebcede234bf509223b0aab1133
KWSys 2013-11-21 (1010d0e3)

Extract upstream KWSys using the following shell commands.

$ git archive --prefix=upstream-kwsys/ 1010d0e3 | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' beef6819..1010d0e3
Adrien Destugues (2):
      2b303bd7 SystemTools: Remove outdated preprocessor checks for Haiku
      96b2f6f4 DynamicLoader: Cleanup test include files for Haiku

Brad King (3):
      e39f85e0 SystemTools: Activate EnableMSVCDebugHook under CTest
      ace1364c Encoding: Remove unused include
      1010d0e3 SystemTools: Avoid unused function warnings

Burlen Loring (1):
      1d882d4c SystemInformation : Better stack trace

Clinton Stimpson (4):
      0c2ff1f7 Encoding: Add Encoding module.
      8abbad82 FStream: Add FStream module.
      0a98de97 KWSys: Port to use wide character Windows APIs throughout.
      2b0c683d Encoding: Default to ANSI code page on Windows

David Cole (1):
      f67bb2ba SystemTools: Move typedef mode_t inside the SystemTools class

Patrick Gansterer (2):
      89e42c36 SystemTools: Remove duplicate code for parsing Windows registry keys
      deec6b8a SystemTools: Add a function to get subkeys of a Windows registry key

Raphael Kubo da Costa (1):
      6eab64c3 SystemInformation: Include backtrace-related headers on FreeBSD

Rolf Eike Beer (1):
      dbc8fa1b SystemInformation: fix truncation warnings

Sean McBride (2):
      4c4f8a9e Supress clang warnings about dynamic exception specifications
      a40b9263 SystemInformation: Work around gcc -Wliteral-suffix warning

Change-Id: I3e923c6ac214b493e50ffdda7375b1098098723a
Merge branch 'upstream-kwsys' into update-kwsys

Change-Id: I122ae6227cfceb1f93192bd62da9fa479df9e1a3
BUG: SpacePrecision typedef's incorrect.

In a few places the precision of points or continuous index
were allowed to be non-double. In those cases it is critical
that the previous typedef's be maintained.  This patch reviewed
where typedef's were changed from previous specializations to the
global SpacingPrecisionType incorrectly.

Tested external builds for ANTS, BRAINSTools, and the internal
test suite to ensure that this reversion fixes the regressions.

Change-Id: I2f94e0601e84230c1001af02a90799270df2b582
DOC: Clarified NormalizedCorrelationImageToImageMetric value

Thanks to Jonas Beuke for reporting the issue.

Also fixed a few style issues in the test for this class.

Change-Id: I2cb15fc801dee4a6276eda7b43d7b83376e20d13
Merge topic 'FixChangeInfoConversionWarning'

1a38195 COMP: Fix C++11 conversion warning.
Merge topic 'RevertSpacePrecisionGenerality'

83d889a BUG: SpacePrecision typedef's incorrect.
Merge topic 'FixChangeInfoConversionWarning'

f4b3bed STYLE: Use double type in array initializer list for spacing
BUG: Using static const variable causes ld error when using dynamic libraries

Static const variables yeld STB_GNU_UNIQUE symbols in shared libraries, and prevent these libraries to be properly unloaded. As a result, a program using dynamic libraries loading including calls to itk::MattesMutualInformationImageToImageMetric will return the following error whenever it ends :

Inconsistency detected by ld.so: dl-close.c: 731: _dl_close: Assertion `map->l_init_called' failed!

This patch only replaces the static const variables by const variables.

The pre-commit hook made me do the style changes. I applied the requested changes in this new version.

Change-Id: I5862ff5a965599dbf2a4cc1b48b5a4931588653b
Merge topic 'update-kwsys'

106a0ba Merge branch 'upstream-kwsys' into update-kwsys
dc6c2b9 KWSys 2013-11-21 (1010d0e3)
COMP: No Vector pixel type for BinShrink

VS9 (2008) does not correctly implicitly cast itk::Vector for
operator +=

The filter is no longer wrapped for the vector pixel type.

Change-Id: I114b28de45e3678d00b3f0b87dd6124febec0692
Merge topic 'Doc-NormCorrelMetric'

7055107 DOC: Clarified NormalizedCorrelationImageToImageMetric value
BUG: Use standard baseline and compare for validation

Don't use custom code to compare images, use a baseline with command
line tunable tolerances.

Change-Id: I2cf257e234a171a428a92bb5a0a1b3b9cbb08414
Merge topic 'GPUMeanStandardImageCompare'

355e9d1 BUG: Use standard baseline and compare for validation
Merge topic 'WrapITKBinShrinkNoVector'

c14c5c9 COMP: No Vector pixel type for BinShrink
BUG: Remove initially available ITK_WRAP_JAVA cmake option

Currently Java WrapITK needs work, an does not build correctly. This
patch removes the option initially available. The option will still
become available after ITK_WRAPPING is enabled.

Change-Id: I8d552555d72d95b5fbf05b87b94527aac1025960
COMP: Use SimpleNew macro to avoid Clone method

This patch addressed the following warning:

itkResampleImageTest2.cxx(46): warning #177: function
"<unnamed>::NonlinearAffineTransform<TCoordRepType,
NDimensions>::Clone [with TCoordRepType=double, NDimensions=2U]" was
declared but never referenced

Change-Id: I2bac40c6c8a60e5e7f2626d0279fc911961c0048