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

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

[Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings
Date: Sat, 14 Apr 2018 21:37:44 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #3, bug #53650 (project octave):

Rik - the one I don't understand fully is the unused lambda capture warning,
which is about some code that you wrote last year in 206a7eb1561b.

Is there some performance reason for what you wrote


    const T zero = T ();

    return std::count_if (d, d + nel,
                          [zero] (T elem) { return elem != zero; });


instead of this


    return std::count_if (d, d + nel,
                          [] (T elem) { return elem != T (); });


I made that change as in the attached diff, but I'm not sure how to test it.
The octave_base_diag class doesn't use the DiagMatrix nnz specialization. No
functional changes, test suite runs fine.

(file #43930)
    _______________________________________________________

Additional Item Attachment:

File name: warnings.diff                  Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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