Add patch to fix compiler error: narrowing conversion
On ARM, char is unsigned by default
This commit is contained in:
parent
138aec686e
commit
bb6edbbe17
11
gdcm-2.6-fix-narrowing-error.patch
Normal file
11
gdcm-2.6-fix-narrowing-error.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- gdcm-2.6.3.orig/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestElement1.cxx 2016-01-27 14:25:39.000000000 +0100
|
||||||
|
+++ gdcm-2.6.3/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestElement1.cxx 2016-02-01 22:34:34.559716794 +0100
|
||||||
|
@@ -88,7 +88,7 @@
|
||||||
|
|
||||||
|
int TestUL()
|
||||||
|
{
|
||||||
|
- const char array[4] = {-78, 1, 0, 0}; // 434
|
||||||
|
+ const signed char array[4] = {-78, 1, 0, 0}; // 434
|
||||||
|
{
|
||||||
|
Element<VR::UL, VM::VM1> a;
|
||||||
|
// reinterpret_cast< const Element<VR::UL, VM::VM1>& > ( array );
|
@ -21,6 +21,7 @@ Patch3: gdcm-2.4.0-no-versioned-dir.patch
|
|||||||
#Patch4: gdcm-0005-support-vtk6.patch
|
#Patch4: gdcm-0005-support-vtk6.patch
|
||||||
Patch5: gdcm-2.4.0-find-python27.patch
|
Patch5: gdcm-2.4.0-find-python27.patch
|
||||||
Patch6: gdcm-2.6-fix-cmake-config-paths.patch
|
Patch6: gdcm-2.6-fix-cmake-config-paths.patch
|
||||||
|
Patch7: gdcm-2.6-fix-narrowing-error.patch
|
||||||
|
|
||||||
BuildRequires: CharLS-devel >= 1.0
|
BuildRequires: CharLS-devel >= 1.0
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -120,6 +121,7 @@ used this library with python
|
|||||||
%patch2 -p 1
|
%patch2 -p 1
|
||||||
%patch3 -p 1
|
%patch3 -p 1
|
||||||
%patch6 -p 1
|
%patch6 -p 1
|
||||||
|
%patch7 -p 1
|
||||||
|
|
||||||
# Remove bundled utilities (we use Fedora's ones)
|
# Remove bundled utilities (we use Fedora's ones)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user