Mercurial > jwe > octave
changeset 21191:8e317ce26a24
unconditionally define warn_qrupdate_once
* base-qr.h (warn_qrupdate_once): Declare unconditionally.
* dbleQR.cc (warn_qrupdate_once): Define unconditionally.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 04 Feb 2016 03:04:07 -0500 |
parents | 342764537e5a |
children | a2ee71d42a06 |
files | liboctave/numeric/base-qr.h liboctave/numeric/dbleQR.cc |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/numeric/base-qr.h Thu Feb 04 02:24:51 2016 -0500 +++ b/liboctave/numeric/base-qr.h Thu Feb 04 03:04:07 2016 -0500 @@ -75,8 +75,6 @@ qr_type r; }; -#if ! defined (HAVE_QRUPDATE) extern void warn_qrupdate_once (void); -#endif #endif
--- a/liboctave/numeric/dbleQR.cc Thu Feb 04 02:24:51 2016 -0500 +++ b/liboctave/numeric/dbleQR.cc Thu Feb 04 03:04:07 2016 -0500 @@ -674,9 +674,13 @@ init (::shift_cols (q*r, i, j), get_type ()); } -void warn_qrupdate_once (void) +#endif + +void +warn_qrupdate_once (void) { static bool warned = false; + if (! warned) { (*current_liboctave_warning_with_id_handler) @@ -689,5 +693,3 @@ warned = true; } } - -#endif