[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "
From: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang |
Date: |
Wed, 11 Jan 2023 13:53:03 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?63643>
Summary: [octave-forge](image) warnings about "abs" when
compiling with clang
Project: GNU Octave
Submitter: dasergatskov
Submitted: Wed 11 Jan 2023 06:53:01 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build Failure
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 8.0.90
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 11 Jan 2023 06:53:01 PM UTC By: Dmitri A. Sergatskov <dasergatskov>
Lots of warnings compiling bwdist.cc (4 warnings) and
__custom_gaussian_smoothing__.cc (80 warnings)
bwdist.cc:424:27: warning: using floating point absolute value function 'fabs'
when argument is of integer type [-Wabsolute-value]
return abs(x)>abs(y) ? (fabs(x) + sqrt2_1 * fabs(y)) :
^
bwdist.cc:424:27: note: use function 'std::abs' instead
return abs(x)>abs(y) ? (fabs(x) + sqrt2_1 * fabs(y)) :
^~~~
std::abs
...
clang++ -std=gnu++14 -I/usr/local/include/octave-8.0.1/octave/..
-I/usr/local/include/octave-8.0.1/octave -I/usr/local/include -pthread
-fopenmp -O2 -mavx -mavx2 -march=native -mtune=native -flto=thin -g -Wall -O2
-o bwdist.oct /tmp/oct-FvWdqw.o -shared -Wl,-Bsymbolic -L/usr/local/lib
-shared -Wl,-Bsymbolic -L/usr/local/lib -shared -Wl,-Bsymbolic
__custom_gaussian_smoothing__.cc:58:43: warning: using integer absolute value
function 'abs' when argument is of floating point type [-Wabsolute-value]
const octave_idx_type rur = abs (k*(ct*sqrtv2 - st*sqrtv1)); //
'rur' means 'row-upper-right'
^
__custom_gaussian_smoothing__.cc:58:43: note: use function 'std::abs' instead
const octave_idx_type rur = abs (k*(ct*sqrtv2 - st*sqrtv1)); //
'rur' means 'row-upper-right'
^~~
std::abs
...
Full log is attached.
image 2.14.0; octave 8.0.1; clang 15.0.1 on CentOs Stream 9.
Dmitri.
--
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 11 Jan 2023 06:53:01 PM UTC Name: image_abs_warnings.txt.gz Size:
1KiB By: dasergatskov
<http://savannah.gnu.org/bugs/download.php?file_id=54215>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63643>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang,
Dmitri A. Sergatskov <=
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Avinoam Kalma, 2023/01/14
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Avinoam Kalma, 2023/01/17
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Dmitri A. Sergatskov, 2023/01/17
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Avinoam Kalma, 2023/01/17
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Avinoam Kalma, 2023/01/19
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Avinoam Kalma, 2023/01/22
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Hartmut, 2023/01/23
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Avinoam Kalma, 2023/01/23
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Avinoam Kalma, 2023/01/24
- [Octave-bug-tracker] [bug #63643] [octave-forge](image) warnings about "abs" when compiling with clang, Markus Mützel, 2023/01/24