octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #46314] image package: warning on deprecated l


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #46314] image package: warning on deprecated length()
Date: Wed, 28 Oct 2015 16:05:37 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?46314>

                 Summary: image package: warning on deprecated length() 
                 Project: GNU Octave
            Submitted by: avinoam
            Submitted on: Wed 28 Oct 2015 04:05:36 PM GMT
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: Avinoam
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Any

    _______________________________________________________

Details:


>> pkg install image-2.4.1.tar.gz
bwfill.cc: In function 'octave_value_list Fbwfill(const octave_value_list&,
int)':
bwfill.cc:137:30: warning: 'octave_idx_type Array<T>::length() const [with T =
double; octa
ve_idx_type = int]' is deprecated (declared at
C:OctaveOctave-4.1.0+includeoctave-4.1.0
+octave../octave/Array.h:269) [-Wdeprecated-declarations]
       npoints= xseed.length ();
                              ^
hough_line.cc: In function 'octave_value_list Fhough_line(const
octave_value_list&, int)':
hough_line.cc:61:44: warning: 'octave_idx_type Array<T>::length() const [with
T = double; o
ctave_idx_type = int]' is deprecated (declared at
C:OctaveOctave-4.1.0+includeoctave-4.
1.0+octave../octave/Array.h:269) [-Wdeprecated-declarations]
   const int thetas_length = thetas.length ();
                                            ^
hough_line.cc:68:40: warning: 'octave_idx_type Array<T>::length() const [with
T = double; o
ctave_idx_type = int]' is deprecated (declared at
C:OctaveOctave-4.1.0+includeoctave-4.
1.0+octave../octave/Array.h:269) [-Wdeprecated-declarations]
   const int bins_length = bins.length ();
                                        ^
graycomatrix.cc: In function 'octave_value_list Fgraycomatrix(const
octave_value_list&, int
)':
graycomatrix.cc:69:47: warning: 'octave_idx_type Array<T>::length() const
[with T = double;
 octave_idx_type = int]' is deprecated (declared at
C:OctaveOctave-4.1.0+includeoctave-
4.1.0+octave../octave/Array.h:269) [-Wdeprecated-declarations]
     dim(0) = L; dim(1) = L; dim(2) = d.length(); dim(3) = th.length();
                                               ^
graycomatrix.cc:69:69: warning: 'octave_idx_type Array<T>::length() const
[with T = double;
 octave_idx_type = int]' is deprecated (declared at
C:OctaveOctave-4.1.0+includeoctave-
4.1.0+octave../octave/Array.h:269) [-Wdeprecated-declarations]
     dim(0) = L; dim(1) = L; dim(2) = d.length(); dim(3) = th.length();
                                                                     ^
graycomatrix.cc:82:50: warning: 'octave_idx_type Array<T>::length() const
[with T = double;
 octave_idx_type = int]' is deprecated (declared at
C:OctaveOctave-4.1.0+includeoctave-
4.1.0+octave../octave/Array.h:269) [-Wdeprecated-declarations]
             for (int d_idx = 0; d_idx < d.length(); d_idx++) {
                                                  ^
graycomatrix.cc:84:57: warning: 'octave_idx_type Array<T>::length() const
[with T = double;
 octave_idx_type = int]' is deprecated (declared at
C:OctaveOctave-4.1.0+includeoctave-
4.1.0+octave../octave/Array.h:269) [-Wdeprecated-declarations]
                 for (int th_idx = 0; th_idx < th.length(); th_idx++) {
                                                         ^


replacing length with numel will solve this. cs attached.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 28 Oct 2015 04:05:36 PM GMT  Name: length.cs  Size: 2kB   By:
avinoam

<http://savannah.gnu.org/bugs/download.php?file_id=35327>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46314>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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