Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(56)

Issue 10195044: code review 10195044: lib9: avoid all -Wconversion warnings (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by iant
Modified:
12 years ago
Reviewers:
aram, jnj, r, bradfitz
CC:
golang-dev, dave_cheney.net, rsc, r
Visibility:
Public.

Description

lib9: avoid all -Wconversion warnings Built after adding -Wconversion to the list of compiler arguments used when building. I believe these are all OK assuming we will not change the API. There is no effort to detect overflow due to very long strings.

Patch Set 1 #

Patch Set 2 : diff -r 8de6d4c58935 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 4f5aa82dafa2 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -161 lines) Patch
src/lib9/_p9dir.c View 3 chunks +6 lines, -6 lines 0 comments Download
src/lib9/atoi.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/await.c View 1 chunk +2 lines, -2 lines 0 comments Download
src/lib9/dirfstat.c View 1 chunk +2 lines, -2 lines 0 comments Download
src/lib9/dirfwstat.c View 1 chunk +3 lines, -3 lines 0 comments Download
src/lib9/dirstat.c View 1 chunk +2 lines, -2 lines 0 comments Download
src/lib9/dirwstat.c View 1 chunk +2 lines, -2 lines 0 comments Download
src/lib9/execl.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/flag.c View 10 chunks +11 lines, -11 lines 0 comments Download
src/lib9/fmt/dofmt.c View 1 27 chunks +44 lines, -44 lines 0 comments Download
src/lib9/fmt/dorfmt.c View 3 chunks +3 lines, -3 lines 0 comments Download
src/lib9/fmt/fltfmt.c View 11 chunks +14 lines, -12 lines 0 comments Download
src/lib9/fmt/fmt.c View 1 3 chunks +4 lines, -4 lines 0 comments Download
src/lib9/fmt/fmtdef.h View 3 chunks +3 lines, -3 lines 0 comments Download
src/lib9/fmt/fmtfdflush.c View 1 chunk +2 lines, -2 lines 0 comments Download
src/lib9/fmt/fmtquote.c View 4 chunks +6 lines, -6 lines 0 comments Download
src/lib9/fmt/fmtrune.c View 1 chunk +2 lines, -2 lines 0 comments Download
src/lib9/fmt/sprint.c View 1 chunk +2 lines, -2 lines 0 comments Download
src/lib9/fmt/strtod.c View 11 chunks +14 lines, -13 lines 0 comments Download
src/lib9/fmt/vsmprint.c View 2 chunks +3 lines, -3 lines 0 comments Download
src/lib9/fmt/vsnprint.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/getwd.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/readn.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/rfork.c View 2 chunks +2 lines, -2 lines 0 comments Download
src/lib9/strecpy.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/tokenize.c View 4 chunks +4 lines, -4 lines 0 comments Download
src/lib9/utf/rune.c View 13 chunks +19 lines, -19 lines 0 comments Download
src/lib9/utf/utfecpy.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/utf/utflen.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/utf/utfnlen.c View 2 chunks +2 lines, -2 lines 0 comments Download
src/lib9/utf/utfrrune.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/utf/utfrune.c View 1 chunk +1 line, -1 line 0 comments Download
src/lib9/utf/utfutf.c View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 16
iant
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years ago (2013-06-12 15:33:13 UTC) #1
iant
On Wed, Jun 12, 2013 at 8:33 AM, <iant@golang.org> wrote: > > Description: > lib9: ...
12 years ago (2013-06-12 15:42:21 UTC) #2
dave_cheney.net
I am always a hearty plus one on this class of change. Thank you for ...
12 years ago (2013-06-12 16:00:33 UTC) #3
rsc
I wonder if it makes sense to enable -Wconversion just on a whitelist of directories. ...
12 years ago (2013-06-21 17:34:34 UTC) #4
iant
Hello golang-dev@googlegroups.com, dave@cheney.net, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2013-06-25 05:46:19 UTC) #5
r
i'm fine with this, but its status is unclear to me.
12 years ago (2013-06-25 17:37:30 UTC) #6
iant
On Tue, Jun 25, 2013 at 10:37 AM, <r@golang.org> wrote: > i'm fine with this, ...
12 years ago (2013-06-25 17:40:11 UTC) #7
r
LGTM
12 years ago (2013-06-25 17:43:07 UTC) #8
iant
*** Submitted as https://code.google.com/p/go/source/detail?r=3899cce24466 *** lib9: avoid all -Wconversion warnings Built after adding -Wconversion to ...
12 years ago (2013-06-25 17:44:32 UTC) #9
jnj
On 2013/06/25 17:44:32, iant wrote: > *** Submitted as https://code.google.com/p/go/source/detail?r=3899cce24466 *** > > lib9: avoid ...
12 years ago (2013-06-26 01:16:31 UTC) #10
bradfitz
The plan9 build has always been broken: http://build.golang.org/ On Jun 25, 2013 6:16 PM, <jeremyjackins@gmail.com> ...
12 years ago (2013-06-26 01:22:30 UTC) #11
iant
On Tue, Jun 25, 2013 at 6:16 PM, <jeremyjackins@gmail.com> wrote: > > Hello, this revision ...
12 years ago (2013-06-26 05:08:46 UTC) #12
rsc
The Plan 9 C libraries do not use size_t anywhere. Russ
12 years ago (2013-06-26 05:09:18 UTC) #13
iant
On Tue, Jun 25, 2013 at 10:09 PM, Russ Cox <rsc@golang.org> wrote: > The Plan ...
12 years ago (2013-06-26 05:11:54 UTC) #14
rsc
It's unsigned long ( http://plan9.bell-labs.com/sources/plan9/sys/include/libc.h). You might be able to get away with adding a ...
12 years ago (2013-06-26 05:22:03 UTC) #15
aram
12 years ago (2013-06-26 11:24:41 UTC) #16
Brad Fitzpatrick wrote:
> The plan9 build has always been broken: http://build.golang.org/

Not really. The tests just timed out (machine too slow?). Now the build 
really is broken.

Why is the Plan 9 builder so slow. Who hosts it, what hardware, is it 
virtual?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b