Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Issue 1124233005: clang/win: Fix last plugin warnings in component builds. (Closed)

Created:
5 years, 7 months ago by Nico
Modified:
5 years, 7 months ago
Reviewers:
davidben
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

clang/win: Fix last plugin warnings in component builds. Exporting a class on Windows forces instantiation of default constructor, copy constructor, and sundry similar other functions. The clang plugin then complains about these not being out-of-line, even if they're not referred to from anywhere. Since having this only on Windows is annoying, we're suppressing these warnings on exported classes. In this case however, the inner classes STSState and PKPState aren't exported, and their copy constructors are only instantiated because their outer class _is_ exported and has STSState and PKPState members. This cannot be easily suppressed, and it's also the only place in the whole codebase where this happens. So just export these two structs to make the plugin happy in Windows component builds. BUG=467287, 483986 Committed: https://crrev.com/07b68b6b552c8a12d4e0db3a32fbd4b118275342 Cr-Commit-Position: refs/heads/master@{#329483}

Patch Set 1 #

Patch Set 2 : durr #

Total comments: 1

Patch Set 3 : export #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M net/http/transport_security_state.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Nico
5 years, 7 months ago (2015-05-12 18:40:49 UTC) #2
davidben
Would it be better to export those two classes instead? Given that DomainState is also ...
5 years, 7 months ago (2015-05-12 19:10:30 UTC) #3
Nico
Changed to export the inner classes instead.
5 years, 7 months ago (2015-05-12 19:28:56 UTC) #4
davidben
lgtm
5 years, 7 months ago (2015-05-12 19:29:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124233005/40001
5 years, 7 months ago (2015-05-12 19:32:27 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-12 20:56:14 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 20:57:07 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/07b68b6b552c8a12d4e0db3a32fbd4b118275342
Cr-Commit-Position: refs/heads/master@{#329483}

Powered by Google App Engine
This is Rietveld 408576698