[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 04:13:47 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 |
URL:
<http://savannah.gnu.org/bugs/?53650>
Summary: build: clang-6.0 compiler warnings
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Sat 14 Apr 2018 01:13:46 AM PDT
Category: Configuration and Build System
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.3.90
Operating System: GNU/Linux
_______________________________________________________
Details:
The following compiler warnings are issued by clang 6.0 on Debian when
building the current 4.3.90 stable branch head (f9fe8cf64e09).
Three of these warnings occur in declarations in public header files that are
part of the Octave API, so they must not be fixed on stable after 4.4 is
released.
* -Wunused-function
../libinterp/corefcn/pr-output.cc:1722:1: warning: unused function 'abs'
[-Wunused-function]
SPECIALIZE_UABS(long long)
^
../libinterp/corefcn/pr-output.cc:1713:3: note: expanded from macro
'SPECIALIZE_UABS'
abs (unsigned T x) \
^
* -Wunused-lambda-capture
In file included from ../liboctave/array/MArray-s.cc:43:
../liboctave/array/MDiagArray2.h:97:28: warning: lambda capture 'zero' is not
required to be captured for this use [-Wunused-lambda-capture]
[zero] (T elem) { return elem != zero; });
^
../liboctave/array/MArray-s.cc:46:27: note: in instantiation of member
function 'MDiagArray2<short>::nnz' requested here
template class OCTAVE_API MDiagArray2<short>;
^
* -Wunused-parameter
In file included from ../libinterp/octave-value/ov-base.cc:59:
../libinterp/corefcn/pr-output.h:61:37: warning: unused parameter 'c'
[-Wunused-parameter]
make_format (const std::complex<T>& c)
^
* -Wunused-private-field
In file included from ../libinterp/octave.cc:44:
../libinterp/octave.h:136:10: warning: private field 'm_force_gui' is not used
[-Wunused-private-field]
bool m_force_gui = false;
^
There are more warnings from the use of the '-pthread' option when linking,
but this is more of a build-system detail that we probably don't want to try
to intervene into.
Other than these warnings, no build problems and Octave passes most tests.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53650>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings,
Mike Miller <=
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Rik, 2018/04/14
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Mike Miller, 2018/04/14
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Mike Miller, 2018/04/14
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Rik, 2018/04/15
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Rik, 2018/04/15
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Mike Miller, 2018/04/15
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Rik, 2018/04/15
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Mike Miller, 2018/04/15
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Mike Miller, 2018/04/15
- [Octave-bug-tracker] [bug #53650] build: clang-6.0 compiler warnings, Rik, 2018/04/15