Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized warnings.... #7

Closed
malex984 opened this issue Jul 28, 2011 · 1 comment
Closed

uninitialized warnings.... #7

malex984 opened this issue Jul 28, 2011 · 1 comment

Comments

@malex984
Copy link
Member

libtool: link: g++ -Wall -O2 -o diff diff.o support.o -Wl,-rpath -Wl,/usr/lib -L/GITHUB/w/LINBOX/lib -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g -lfactory -lomalloc_g /usr/lib/libntl.so -L/usr/lib /usr/lib/libgf2x.so -ldl -lgmp -lgmpxx -lpng /usr/lib/libm4ri.so -lm ../lela/.libs/liblela.a
In file included from ../../lela/algorithms/elimination.h:225:0,
from ../../lela/solutions/echelon-form.h:18,
from ../../util/row-echelon-form.C:19:
../../lela/blas/level1-gf2.tcc: In member function ‘Matrix& LELA::Elimination<Ring, Modules>::echelonize(Matrix&, LELA::Elimination<Ring, Modules>::Permutation&, size_t&, LELA::Elimination<Ring, Modules>::Element&, PivotStrategy, bool) const [with Matrix = LELA::DenseMatrix, PivotStrategy = LELA::DensePivotStrategy<LELA::GF2, LELA::AllModulesLELA::GF2 >, Ring = LELA::GF2, Modules = LELA::AllModulesLELA::GF2, LELA::Elimination<Ring, Modules>::Permutation = std::vector<std::pair<unsigned int, unsigned int> >, size_t = long unsigned int, LELA::Elimination<Ring, Modules>::Element = bool]’:
../../lela/blas/level1-gf2.tcc:294:3: warning: ‘((void)(& j_A)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::end’ may be used uninitialized in this function [-Wuninitialized]
../../lela/algorithms/elimination.tcc:64:36: note: ‘
((void_)(& j_A)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::end’ was declared here
../../lela/blas/level1-gf2.tcc:292:4: warning: ‘
((void_)(& j_A)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::begin’ may be used uninitialized in this function [-Wuninitialized]
../../lela/algorithms/elimination.tcc:64:36: note: ‘
((void_)(& j_A)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::begin’ was declared here
../../lela/matrix/m4ri-matrix.h: In member function ‘Matrix1& LELA::Elimination<Ring, Modules>::echelonize_reduced(Matrix1&, Matrix2&, LELA::Elimination<Ring, Modules>::Permutation&, size_t&, LELA::Elimination<Ring, Modules>::Element&, PivotStrategy, bool) const [with Matrix1 = LELA::DenseMatrix, Matrix2 = LELA::DenseMatrix, PivotStrategy = LELA::DensePivotStrategy<LELA::GF2, LELA::AllModulesLELA::GF2 >, Ring = LELA::GF2, Modules = LELA::AllModulesLELA::GF2, LELA::Elimination<Ring, Modules>::Permutation = std::vector<std::pair<unsigned int, unsigned int> >, size_t = long unsigned int, LELA::Elimination<Ring, Modules>::Element = bool]’:
../../lela/matrix/m4ri-matrix.h:143:4: warning: ‘j_L.LELA::M4RIMatrix::RowIteratorPT<long long unsigned int*, const long long unsigned int*, LELA::M4RIMatrixBase*>::idx’ may be used uninitialized in this function [-Wuninitialized]
../../lela/algorithms/elimination.tcc:163:37: note: ‘j_L.LELA::M4RIMatrix::RowIteratorPT<long long unsigned int*, const long long unsigned int*, LELA::M4RIMatrixBase*>::idx’ was declared here
../../lela/blas/level1-gf2.tcc:294:3: warning: ‘
((void
)(& j_L)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::end’ may be used uninitialized in this function [-Wuninitialized]
../../lela/algorithms/elimination.tcc:163:37: note: ‘
((void
)(& j_L)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::end’ was declared here
../../lela/algorithms/elimination.tcc:163:37: warning: ‘
((void_)(& j_L)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::begin’ may be used uninitialized in this function [-Wuninitialized]
../../lela/matrix/m4ri-matrix.h: In member function ‘Matrix1& LELA::Elimination<Ring, Modules>::echelonize_reduced(Matrix1&, Matrix2&, LELA::Elimination<Ring, Modules>::Permutation&, size_t&, LELA::Elimination<Ring, Modules>::Element&, PivotStrategy, bool) const [with Matrix1 = LELA::SparseMatrix<bool, std::vector >, Matrix2 = LELA::DenseMatrix, PivotStrategy = LELA::SparsePartialPivotStrategy<LELA::GF2, LELA::AllModulesLELA::GF2 >, Ring = LELA::GF2, Modules = LELA::AllModulesLELA::GF2, LELA::Elimination<Ring, Modules>::Permutation = std::vector<std::pair<unsigned int, unsigned int> >, size_t = long unsigned int, LELA::Elimination<Ring, Modules>::Element = bool]’:
../../lela/matrix/m4ri-matrix.h:143:4: warning: ‘j_L.LELA::M4RIMatrix::RowIteratorPT<long long unsigned int*, const long long unsigned int*, LELA::M4RIMatrixBase*>::idx’ may be used uninitialized in this function [-Wuninitialized]
../../lela/algorithms/elimination.tcc:163:37: note: ‘j_L.LELA::M4RIMatrix::RowIteratorPT<long long unsigned int*, const long long unsigned int*, LELA::M4RIMatrixBase*>::idx’ was declared here
../../lela/blas/level1-gf2.tcc:294:3: warning: ‘
((void
)(& j_L)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::end’ may be used uninitialized in this function [-Wuninitialized]
../../lela/algorithms/elimination.tcc:163:37: note: ‘
((void
)(& j_L)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::end’ was declared here
../../lela/algorithms/elimination.tcc:163:37: warning: ‘
((void_)(& j_L)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::begin’ may be used uninitialized in this function [-Wuninitialized]
../../lela/matrix/m4ri-matrix.h: In member function ‘Matrix1& LELA::Elimination<Ring, Modules>::echelonize_reduced(Matrix1&, Matrix2&, LELA::Elimination<Ring, Modules>::Permutation&, size_t&, LELA::Elimination<Ring, Modules>::Element&, PivotStrategy, bool) const [with Matrix1 = LELA::SparseMatrix<bool, LELA::HybridVector<LELA::BigEndian, short unsigned int, long unsigned int> >, Matrix2 = LELA::DenseMatrix, PivotStrategy = LELA::SparsePartialPivotStrategy<LELA::GF2, LELA::AllModulesLELA::GF2 >, Ring = LELA::GF2, Modules = LELA::AllModulesLELA::GF2, LELA::Elimination<Ring, Modules>::Permutation = std::vector<std::pair<unsigned int, unsigned int> >, size_t = long unsigned int, LELA::Elimination<Ring, Modules>::Element = bool]’:
../../lela/matrix/m4ri-matrix.h:143:4: warning: ‘j_L.LELA::M4RIMatrix::RowIteratorPT<long long unsigned int*, const long long unsigned int*, LELA::M4RIMatrixBase*>::idx’ may be used uninitialized in this function [-Wuninitialized]
../../lela/algorithms/elimination.tcc:163:37: note: ‘j_L.LELA::M4RIMatrix::RowIteratorPT<long long unsigned int*, const long long unsigned int*, LELA::M4RIMatrixBase*>::idx’ was declared here
../../lela/blas/level1-gf2.tcc:294:3: warning: ‘
((void
)(& j_L)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::end’ may be used uninitialized in this function [-Wuninitialized]
../../lela/algorithms/elimination.tcc:163:37: note: ‘
((void
)(& j_L)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::end’ was declared here
../../lela/algorithms/elimination.tcc:163:37: warning: ‘
((void_)(& j_L)+16).LELA::BitSubvectorWordAligned<long long unsigned int*, const long long unsigned int*, LELA::BigEndian >::_begin’ may be used uninitialized in this function [-Wuninitialized]

@hovinen
Copy link
Member

hovinen commented Jul 28, 2011

This is the compiler being stupid (especially in the case of j_A). I've made some silly changes which should fix it. Please let me know otherwise.

@hovinen hovinen closed this as completed Jul 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants