help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.1.68 fails to compile on Solaris


From: John W. Eaton
Subject: Re: 2.1.68 fails to compile on Solaris
Date: Wed, 30 Mar 2005 18:13:08 -0500

On 31-Mar-2005, steven mestdagh <address@hidden> wrote:

| that works, but still gives these type of warnings:
| 
| /freeware/octave/src/octave/liboctave/DiagArray2.cc: In member function
|  `T& DiagArray2<T>::xelem(int, int) [with T = bool]':
| /freeware/octave/src/octave/liboctave/Array-b.cc:48:   instantiated from here
| /freeware/octave/src/octave/liboctave/DiagArray2.cc:77: warning: sorry:
|  semantics of inline function static data `bool foo' are wrong (you'll wind
|  up with multiple copies)
| /freeware/octave/src/octave/liboctave/DiagArray2.cc:77: warning:   you can
|  work around this by removing the initializer

Same problem, different file:

--- DiagArray2.cc.~1.15.~       2005-01-11 20:28:43.000000000 -0500
+++ DiagArray2.cc       2005-03-30 18:12:19.270502720 -0500
@@ -70,7 +70,7 @@
 T&
 DiagArray2<T>::xelem (int r, int c)
 {
-  static T foo (0);
+  static T foo;
   return (r == c) ? Array<T>::xelem (r) : foo;
 }


jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]