Silence "string-plus-int" warning shown by clang.

libswscale/utils.c:89:42: warning: adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]
This commit is contained in:
Carl Eugen Hoyos
2020-01-06 16:16:18 +01:00
parent e21ba176c9
commit 96fab29e96
8 changed files with 8 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ const char *swscale_configuration(void)
const char *swscale_license(void)
{
#define LICENSE_PREFIX "libswscale license: "
return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1];
}
typedef struct FormatEntry {