Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
d/p/initialize: Fix FTBFS on armhf and possibly other archs
· 6dd69959
Gert Wollny
authored
Jun 03, 2018
6dd69959
Update changelog for upload
· 267c4d5d
Gert Wollny
authored
Jun 03, 2018
267c4d5d
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
267c4d5d
libminc (2.4.03-1~exp2) experimental; urgency=medium
* d/p/initialize: Fix FTBFS on armhf and possibly other archs
-- Gert Wollny <gewo@debian.org> Sun, 03 Jun 2018 10:40:12 +0200
libminc (2.4.03-1~exp1) experimental; urgency=medium
* Team upload.
...
...
debian/patches/initialize_arrays_in_tests.patch
0 → 100644
View file @
267c4d5d
Description: Initialize arrays in tests
in C it can not be assumed that the arrays are initialaized to a sane
value when they are declared on the stack, hence initialiaze the
dimension to zero (this also makes the compiler fill the whole struct
with zeros.
Author: Gert Wollny <gewo@debian.org>
--- a/testdir/multidim_test.c
+++ b/testdir/multidim_test.c
@@ -5,7 +5,7 @@
static int
test1(void)
{
- VIO_multidim_array array;
+ VIO_multidim_array array = {0};
int sizes[TEST1_N_DIMENSIONS] = { 1, 1, 1 };
int read_sizes[VIO_MAX_DIMENSIONS] = { 5, 5, 5, 5, 5 };
int i;
@@ -90,7 +90,7 @@
static int
test2(void)
{
- VIO_multidim_array array;
+ VIO_multidim_array array = {0};
int sizes[TEST2_N_DIMENSIONS] = { 31, 61, 53, 41, 3 };
int read_sizes[VIO_MAX_DIMENSIONS] = { 5, 5, 5, 5, 5 };
int value;
@@ -184,7 +184,7 @@
static int
test3(VIO_Data_types data_type, int n_dimensions, int sizes[])
{
- VIO_multidim_array array;
+ VIO_multidim_array array = {0};
int index[VIO_MAX_DIMENSIONS];
int i;
int n;
debian/patches/series
View file @
267c4d5d
...
...
@@ -2,3 +2,4 @@ build-using-system-find-dot-cmake
fix-uselibminc-cmake
netcdf-4.6.patch
remove-rpath.patch
initialize_arrays_in_tests.patch