Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1026141
| From | Sébastien Villemot <sebastien@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#970791: abs() used without being declared |
| Date | 2020-09-23 14:40 +0200 |
| Message-ID | <AScdY-6mw-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Package: src:intelrdfpmath Version: 2.0u2-2 Severity: minor Tags: patch Dear Maintainer, At 3 places, the abs() function is used without being declared, resulting in messages like the following one: src/bid64_pow.c: In function ‘__bid64_pow’: src/bid64_pow.c:183:17: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration] 183 | exact_y = abs(exact_y); Fortunately, the compiler should infer the correct prototype in this case. It’s however better to avoid such a situation (which is forbidden in C99 and C11, though GCC does not enforce that rule by default). I attach a patch. Thanks for your work, -- ⢀⣴⠾⠻⢶⣦⠀ Sébastien Villemot ⣾⠁⢠⠒⠀⣿⡁ Debian Developer ⢿⡄⠘⠷⠚⠋⠀ http://sebastien.villemot.name ⠈⠳⣄⠀⠀⠀⠀ http://www.debian.org
Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread
Bug#970791: abs() used without being declared Sébastien Villemot <sebastien@debian.org> - 2020-09-23 14:40 +0200
csiph-web