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

Side by Side Diff: base/third_party/dmg_fp/mac_wextra.patch

Issue 2865003: Working towards -Wextra... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/third_party/dmg_fp/g_fmt.cc ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
1 Index: g_fmt.cc
2 ===================================================================
3 --- g_fmt.cc (revision 49784)
4 +++ g_fmt.cc (working copy)
5 @@ -46,7 +46,7 @@
6 if (sign)
7 *b++ = '-';
8 if (decpt == 9999) /* Infinity or Nan */ {
9 - while((*b++ = *s++));
10 + while((*b++ = *s++)) {}
11 goto done0;
12 }
13 if (decpt <= -4 || decpt > se - s + 5) {
14 @@ -64,7 +64,7 @@
15 }
16 else
17 *b++ = '+';
18 - for(j = 2, k = 10; 10*k <= decpt; j++, k *= 10);
19 + for(j = 2, k = 10; 10*k <= decpt; j++, k *= 10) {}
20 for(;;) {
21 i = decpt / k;
22 *b++ = i + '0';
23 @@ -79,7 +79,7 @@
24 *b++ = '.';
25 for(; decpt < 0; decpt++)
26 *b++ = '0';
27 - while((*b++ = *s++));
28 + while((*b++ = *s++)) {}
29 }
30 else {
31 while((*b = *s++)) {
32 Index: dtoa.cc
33 ===================================================================
34 --- dtoa.cc (revision 49784)
35 +++ dtoa.cc (working copy)
36 @@ -3863,7 +3863,7 @@
37 if (dval(&u) > 0.5 + dval(&eps))
38 goto bump_up;
39 else if (dval(&u) < 0.5 - dval(&eps)) {
40 - while(*--s == '0');
41 + while(*--s == '0') {}
42 s++;
43 goto ret1;
44 }
45 @@ -4176,7 +4176,7 @@
46 #ifdef Honor_FLT_ROUNDS
47 trimzeros:
48 #endif
49 - while(*--s == '0');
50 + while(*--s == '0') {}
51 s++;
52 }
53 ret:
OLDNEW
« no previous file with comments | « base/third_party/dmg_fp/g_fmt.cc ('k') | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698