mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-18 17:52:58 -06:00
Add spdiag() prototype to silence GCC 4.6 warning.
GCC's flag -Wmissing-declarations requires that a valid prototype exist for non-template (global) functions prior to the corresponding function definition.
This commit is contained in:
parent
959f7cbcac
commit
c0dead5e97
@ -286,6 +286,9 @@ superset(const Eigen::Array<Scalar, Eigen::Dynamic, 1>& x,
|
||||
|
||||
/// Construct square sparse matrix with the
|
||||
/// elements of d on the diagonal.
|
||||
AutoDiff::ForwardBlock<double>::M
|
||||
spdiag(const AutoDiff::ForwardBlock<double>::V& d);
|
||||
|
||||
AutoDiff::ForwardBlock<double>::M
|
||||
spdiag(const AutoDiff::ForwardBlock<double>::V& d)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user