Skip to content

Commit 6921b27

Browse files
committed
apply patches
1 parent 9e5e375 commit 6921b27

File tree

4 files changed

+36
-34
lines changed

4 files changed

+36
-34
lines changed

inst/include/Eigen/CholmodSupport

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "src/Core/util/DisableStupidWarnings.h"
1414

1515
extern "C" {
16-
#include <cholmod.h>
16+
#include <RcppEigenCholmod.h>
1717
}
1818

1919
/** \ingroup Support_modules

inst/include/Eigen/src/Core/util/DisableStupidWarnings.h

+31-31
Original file line numberDiff line numberDiff line change
@@ -37,40 +37,40 @@
3737
#elif defined __clang__
3838
// -Wconstant-logical-operand - warning: use of logical && with constant operand; switch to bitwise & or remove constant
3939
// this is really a stupid warning as it warns on compile-time expressions involving enums
40-
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
41-
#pragma clang diagnostic push
42-
#endif
43-
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
44-
#if __clang_major__ >= 3 && __clang_minor__ >= 5
45-
#pragma clang diagnostic ignored "-Wabsolute-value"
46-
#endif
47-
#if __clang_major__ >= 10
48-
#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
49-
#endif
50-
#if ( defined(__ALTIVEC__) || defined(__VSX__) ) && __cplusplus < 201103L
51-
// warning: generic selections are a C11-specific feature
52-
// ignoring warnings thrown at vec_ctf in Altivec/PacketMath.h
53-
#pragma clang diagnostic ignored "-Wc11-extensions"
54-
#endif
40+
// #ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
41+
// #pragma clang diagnostic push
42+
// #endif
43+
// #pragma clang diagnostic ignored "-Wconstant-logical-operand"
44+
// #if __clang_major__ >= 3 && __clang_minor__ >= 5
45+
// #pragma clang diagnostic ignored "-Wabsolute-value"
46+
// #endif
47+
// #if __clang_major__ >= 10
48+
// #pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
49+
// #endif
50+
// #if ( defined(__ALTIVEC__) || defined(__VSX__) ) && __cplusplus < 201103L
51+
// // warning: generic selections are a C11-specific feature
52+
// // ignoring warnings thrown at vec_ctf in Altivec/PacketMath.h
53+
// #pragma clang diagnostic ignored "-Wc11-extensions"
54+
// #endif
5555

5656
#elif defined __GNUC__
5757

58-
#if (!defined(EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS)) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
59-
#pragma GCC diagnostic push
60-
#endif
61-
// g++ warns about local variables shadowing member functions, which is too strict
62-
#pragma GCC diagnostic ignored "-Wshadow"
63-
#if __GNUC__ == 4 && __GNUC_MINOR__ < 8
64-
// Until g++-4.7 there are warnings when comparing unsigned int vs 0, even in templated functions:
65-
#pragma GCC diagnostic ignored "-Wtype-limits"
66-
#endif
67-
#if __GNUC__>=6
68-
#pragma GCC diagnostic ignored "-Wignored-attributes"
69-
#endif
70-
#if __GNUC__==7
71-
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
72-
#pragma GCC diagnostic ignored "-Wattributes"
73-
#endif
58+
// #if (!defined(EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS)) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
59+
// #pragma GCC diagnostic push
60+
// #endif
61+
// // g++ warns about local variables shadowing member functions, which is too strict
62+
// #pragma GCC diagnostic ignored "-Wshadow"
63+
// #if __GNUC__ == 4 && __GNUC_MINOR__ < 8
64+
// // Until g++-4.7 there are warnings when comparing unsigned int vs 0, even in templated functions:
65+
// #pragma GCC diagnostic ignored "-Wtype-limits"
66+
// #endif
67+
// #if __GNUC__>=6
68+
// #pragma GCC diagnostic ignored "-Wignored-attributes"
69+
// #endif
70+
// #if __GNUC__==7
71+
// // See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
72+
// #pragma GCC diagnostic ignored "-Wattributes"
73+
// #endif
7474
#endif
7575

7676
#if defined __NVCC__

inst/include/Eigen/src/Core/util/ReenableStupidWarnings.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#elif defined __INTEL_COMPILER
1212
#pragma warning pop
1313
#elif defined __clang__
14-
#pragma clang diagnostic pop
14+
// #pragma clang diagnostic pop
1515
#elif defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
16-
#pragma GCC diagnostic pop
16+
// #pragma GCC diagnostic pop
1717
#endif
1818

1919
#if defined __NVCC__

inst/include/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h

+2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ class MatrixMarketIterator
193193
std::string curfile;
194194
curfile = m_folder + "/" + m_curs_id->d_name;
195195
// Discard if it is a folder
196+
#if !(defined(__sun) || defined(_AIX) || defined(__hpux) || defined(__sgi) || defined(__HAIKU__))
196197
if (m_curs_id->d_type == DT_DIR) continue; //FIXME This may not be available on non BSD systems
198+
#endif
197199
// struct stat st_buf;
198200
// stat (curfile.c_str(), &st_buf);
199201
// if (S_ISDIR(st_buf.st_mode)) continue;

0 commit comments

Comments
 (0)