Skip to content

Commit 7a49c9b

Browse files
committed
8295717: Minimize disabled warnings in accessibility native code
Reviewed-by: erikj, prr
1 parent 7460661 commit 7a49c9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

make/modules/jdk.accessibility/Launcher.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -43,7 +43,7 @@ ifeq ($(call isTargetOs, windows), true)
4343
CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
4444
-analyze- -Od -Gd -D_WINDOWS \
4545
-D_UNICODE -DUNICODE -RTC1 -EHsc, \
46-
DISABLED_WARNINGS_microsoft := 4267 4996, \
46+
DISABLED_WARNINGS_microsoft_jabswitch.cpp := 4267 4996, \
4747
LDFLAGS := $(LDFLAGS_JDKEXE), \
4848
LIBS := advapi32.lib version.lib user32.lib, \
4949
VERSIONINFO_RESOURCE := $(ACCESSIBILITY_SRCDIR)/common/AccessBridgeStatusWindow.rc, \

make/modules/jdk.accessibility/Lib.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -67,7 +67,7 @@ ifeq ($(call isTargetOs, windows), true)
6767
SRC := libwindowsaccessbridge, \
6868
EXTRA_SRC := common, \
6969
OPTIMIZATION := LOW, \
70-
DISABLED_WARNINGS_microsoft := 4311 4302 4312, \
70+
DISABLED_WARNINGS_microsoft_WinAccessBridge.cpp := 4302 4311, \
7171
CFLAGS := $(CFLAGS_JDKLIB) \
7272
-DACCESSBRIDGE_ARCH_$2, \
7373
EXTRA_HEADER_DIRS := \

0 commit comments

Comments
 (0)