Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29411657: Noissue - [emscripten] Address compiler warnings (Closed)

Created:
April 13, 2017, 3:46 p.m. by Wladimir Palant
Modified:
April 13, 2017, 6:37 p.m.
Reviewers:
sergei, hub
CC:
Felix Dahlke
Base URL:
https://hg.adblockplus.org/adblockpluscore
Visibility:
Public.

Description

Apparently, I had to enable compiler warnings explicitly - this is done now. All warnings have been addressed, and I verified that exactly the same build is still being produced with these changes.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M compile View 1 chunk +1 line, -1 line 3 comments Download
M compiled/String.h View 1 chunk +2 lines, -2 lines 0 comments Download
M compiled/StringMap.h View 1 chunk +1 line, -1 line 0 comments Download
M compiled/filter/ActiveFilter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M compiled/filter/Filter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M compiled/subscription/Subscription.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
Wladimir Palant
April 13, 2017, 3:46 p.m. (2017-04-13 15:46:14 UTC) #1
hub
(just a concern, I can live with it) https://codereview.adblockplus.org/29411657/diff/29411658/compile File compile (right): https://codereview.adblockplus.org/29411657/diff/29411658/compile#newcode44 compile:44: '--emit-symbol-map', ...
April 13, 2017, 3:52 p.m. (2017-04-13 15:52:49 UTC) #2
sergei
LGTM https://codereview.adblockplus.org/29411657/diff/29411658/compile File compile (right): https://codereview.adblockplus.org/29411657/diff/29411658/compile#newcode44 compile:44: '--emit-symbol-map', '-Wall', '-Werror'] On 2017/04/13 15:52:49, hub wrote: ...
April 13, 2017, 4:58 p.m. (2017-04-13 16:58:14 UTC) #3
Wladimir Palant
April 13, 2017, 6:35 p.m. (2017-04-13 18:35:43 UTC) #4
https://codereview.adblockplus.org/29411657/diff/29411658/compile
File compile (right):

https://codereview.adblockplus.org/29411657/diff/29411658/compile#newcode44
compile:44: '--emit-symbol-map', '-Wall', '-Werror']
On 2017/04/13 15:52:49, hub wrote:
> I'm always skeptical about -Werror because it cause build to break when using
> different compilers. But I do love 0 warning builds.

The compiler is fixed, which is why we have more freedom here. And without
-Werror people tend to ignore warnings, to the point where there are too many to
notice new ones.

On 2017/04/13 16:58:14, sergei wrote:
> From the top of the head I highly recommend to add -pedantic, it can be
another
> commit.

It breaks EM_ASM because of -Wdollar-in-identifier-extension, no other warnings
beyond that. So maybe some other time.

Powered by Google App Engine
This is Rietveld