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

Issue 21093: Allow clean compilation of dmg_fp under g++ -Wall -Werror (Closed)

Created:
11 years, 10 months ago by Mark Mentovai
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Base URL:
svn://chrome-svn.corp.google.com/chrome/trunk/src/
Visibility:
Public.

Description

Allow clean compilation of dmg_fp under g++ -Wall. We build dmg_fp as part of libbase, which mostly contains our own code. As such, we want to build libbase with -Wall -Werror or equivalent. Since the gyp model does not allow per-file compilation settings, we can't do this without modifying dmg_fp or building it into its own library with its own settings. The former seems less invasive. The following gcc warnings are fixed by this patch: - suggest parentheses around assignment used as truth value - deprecated conversion from string constant to 'char*' - comparison between signed and unsigned integer expressions - label 'something' defined but not used - 'whatever' may be used uninitialized in this function Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9255

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -25 lines) Patch
M base/third_party/dmg_fp/README.chromium View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M base/third_party/dmg_fp/dtoa.cc View 1 18 chunks +23 lines, -21 lines 0 comments Download
M base/third_party/dmg_fp/g_fmt.cc View 3 chunks +6 lines, -4 lines 0 comments Download
A base/third_party/dmg_fp/gcc_warnings.patch View 1 chunk +232 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Mark Mentovai
11 years, 10 months ago (2009-02-05 20:30:54 UTC) #1
tony
11 years, 10 months ago (2009-02-05 20:48:43 UTC) #2
LGTM.

Can you also create a diff and add it as a .patch file to the directory so it's
easy to update the library in the future?

Powered by Google App Engine
This is Rietveld 408576698