summaryrefslogtreecommitdiff
path: root/libavutil/tests
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2019-12-26 19:32:23 +0100
committerNicolas George <george@nsup.org>2020-08-21 11:01:39 +0200
commit06f26512046de1a84e045d219e7fa211c37ad0e4 (patch)
tree711ef7a0823031d953c092095dc207a38b083769 /libavutil/tests
parent412d63fe72d4398d0ffd271a9bd30c6ac9fc0deb (diff)
lavu/avstring: deprecate av_d2str().
It is no longer used in our code base and does not seem to be used much in other projects.
Diffstat (limited to 'libavutil/tests')
-rw-r--r--libavutil/tests/avstring.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/tests/avstring.c b/libavutil/tests/avstring.c
index 887bd25a12..37a2cf1833 100644
--- a/libavutil/tests/avstring.c
+++ b/libavutil/tests/avstring.c
@@ -109,6 +109,8 @@ int main(void)
TEST_STRIREPLACE(haystack, needle [2], "Education consists mainly in what we have instead.");
TEST_STRIREPLACE(haystack, needle [1], "Education consists mainly in what we have instead");
+#if FF_API_D2STR
+FF_DISABLE_DEPRECATION_WARNINGS
/*Testing av_d2str()*/
#define TEST_D2STR(value, expected) \
if((ptr = av_d2str(value)) == NULL){ \
@@ -121,5 +123,7 @@ int main(void)
TEST_D2STR(0 , "0.000000");
TEST_D2STR(-1.2333234, "-1.233323");
TEST_D2STR(-1.2333237, "-1.233324");
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
return 0;
}