From 024f3691a2ea865121fbdff6bb6b3d86120f5909 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 29 Jan 2020 15:45:59 +0100 Subject: There should be no need for o3tl::make_unsigned here ...to avoid hypothetical warnings when comparing an unsigned value to a signed constant Change-Id: Ife9f0be863443ea06fcd6dd49aba651f49659f02 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87690 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- avmedia/source/gstreamer/gstplayer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'avmedia') diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index bf934235a992..bba734b34c79 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -30,7 +30,6 @@ #include #include -#include #include #include #include @@ -126,7 +125,7 @@ void MissingPluginInstaller::report( return; } std::size_t len = std::strlen(det); - if (len > o3tl::make_unsigned(SAL_MAX_INT32)) { + if (len > SAL_MAX_INT32) { SAL_WARN("avmedia.gstreamer", "detail string too long"); g_free(det); return; -- cgit