diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-28 15:44:02 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-28 15:44:02 -0500 |
| commit | 184ac5165e70d4fac213a87ae34a312ec7197f3d (patch) | |
| tree | c739b38eb43f32444a7ec42c41e35cea838f3a3a /src/math | |
| parent | 66032978e77880b3e6b199d61450316946b5fd4f (diff) | |
remove warnings from -Wall -Wextra
Diffstat (limited to 'src/math')
| -rw-r--r-- | src/math/acosh.c | 2 | ||||
| -rw-r--r-- | src/math/asinh.c | 2 | ||||
| -rw-r--r-- | src/math/atanh.c | 2 | ||||
| -rw-r--r-- | src/math/copysign.c | 2 | ||||
| -rw-r--r-- | src/math/nan.c | 1 | ||||
| -rw-r--r-- | src/math/nearbyint.c | 2 | ||||
| -rw-r--r-- | src/math/remquo.c | 1 | ||||
| -rw-r--r-- | src/math/tgamma.c | 2 | ||||
| -rw-r--r-- | src/math/trunc.c | 2 |
9 files changed, 9 insertions, 7 deletions
diff --git a/src/math/acosh.c b/src/math/acosh.c index 291087b2..aeb15816 100644 --- a/src/math/acosh.c +++ b/src/math/acosh.c @@ -4,7 +4,7 @@ TYPE TGFN(acosh)(TYPE x) { - return 0.0; + return x; } /* diff --git a/src/math/asinh.c b/src/math/asinh.c index 08700a25..421f574d 100644 --- a/src/math/asinh.c +++ b/src/math/asinh.c @@ -4,7 +4,7 @@ TYPE TGFN(asinh)(TYPE x) { - return 0.0; + return x; } /* diff --git a/src/math/atanh.c b/src/math/atanh.c index e99a26b7..eef1cfc6 100644 --- a/src/math/atanh.c +++ b/src/math/atanh.c @@ -4,7 +4,7 @@ TYPE TGFN(atanh)(TYPE x) { - return 0.0; + return x; } /* diff --git a/src/math/copysign.c b/src/math/copysign.c index 6e5cb127..a462348b 100644 --- a/src/math/copysign.c +++ b/src/math/copysign.c @@ -4,7 +4,7 @@ TYPE TGFN(copysign)(TYPE x, TYPE y) { - return 0.0; + return x - y; } /* diff --git a/src/math/nan.c b/src/math/nan.c index c5615b98..bd0cbbc4 100644 --- a/src/math/nan.c +++ b/src/math/nan.c @@ -4,6 +4,7 @@ TYPE TGFN(nan)(const char *tagp) { + (void)tagp; return 0.0; } diff --git a/src/math/nearbyint.c b/src/math/nearbyint.c index c3994a62..d5d2cc21 100644 --- a/src/math/nearbyint.c +++ b/src/math/nearbyint.c @@ -4,7 +4,7 @@ TYPE TGFN(nearbyint)(TYPE x) { - return 0.0; + return x; } /* diff --git a/src/math/remquo.c b/src/math/remquo.c index 88e59c0f..7a117ba7 100644 --- a/src/math/remquo.c +++ b/src/math/remquo.c @@ -4,6 +4,7 @@ TYPE TGFN(remquo)(TYPE x, TYPE y, int *quo) { + (void)quo; return x - y; } diff --git a/src/math/tgamma.c b/src/math/tgamma.c index 25778059..b80584ac 100644 --- a/src/math/tgamma.c +++ b/src/math/tgamma.c @@ -4,7 +4,7 @@ TYPE TGFN(tgamma)(TYPE x) { - return 0.0; + return x; } /* diff --git a/src/math/trunc.c b/src/math/trunc.c index 77671f5d..4b1081a6 100644 --- a/src/math/trunc.c +++ b/src/math/trunc.c @@ -4,7 +4,7 @@ TYPE TGFN(trunc)(TYPE x) { - return 0.0; + return x; } /* |
