Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 4197688

Browse files
author
David Major
committed
Bug 1478008 - Make gmp-clearkey use the same warnings under clang-cl as with clang. r=froydnj
1 parent 484fb17 commit 4197688

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

media/gmp-clearkey/0.1/moz.build

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,23 @@ DEFINES['MOZ_NO_MOZALLOC'] = True
5858
USE_LIBS += ['psshparser']
5959

6060
# Suppress warnings in third-party code.
61-
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
61+
if CONFIG['CC_TYPE'] in ('clang', 'clang-cl', 'gcc'):
6262
CFLAGS += [
6363
'-Wno-missing-braces',
6464
'-Wno-pointer-to-int-cast',
6565
'-Wno-sign-compare',
66+
]
67+
elif CONFIG['CC_TYPE'] == 'msvc':
68+
CFLAGS += [
69+
'-wd4090', # '=' : different 'const' qualifiers
70+
]
71+
72+
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
73+
CFLAGS += [
6674
'-include', 'stdio.h', # for sprintf() prototype
6775
'-include', 'unistd.h', # for getpid() prototype
6876
]
6977
elif CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
7078
CFLAGS += [
7179
'-FI', 'stdio.h', # for sprintf() prototype
72-
'-wd4090', # '=' : different 'const' qualifiers
7380
]

0 commit comments

Comments
 (0)