Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
b29ed23a
Commit
b29ed23a
authored
Sep 17, 2012
by
Lucio De Re
Committed by
Russ Cox
Sep 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: fix various 'set and not used' for Plan 9
R=dave, minux.ma, rsc CC=golang-dev
https://golang.org/cl/6501134
parent
54193689
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
2 deletions
+6
-2
src/cmd/8g/reg.c
src/cmd/8g/reg.c
+0
-1
src/cmd/gc/closure.c
src/cmd/gc/closure.c
+1
-0
src/cmd/gc/esc.c
src/cmd/gc/esc.c
+1
-0
src/cmd/gc/mparith1.c
src/cmd/gc/mparith1.c
+1
-1
src/cmd/gc/reflect.c
src/cmd/gc/reflect.c
+1
-0
src/cmd/ld/go.c
src/cmd/ld/go.c
+1
-0
src/pkg/runtime/thread_plan9.c
src/pkg/runtime/thread_plan9.c
+1
-0
No files found.
src/cmd/8g/reg.c
View file @
b29ed23a
...
...
@@ -147,7 +147,6 @@ regopt(Prog *firstp)
return
;
}
r1
=
R
;
firstr
=
R
;
lastr
=
R
;
...
...
src/cmd/gc/closure.c
View file @
b29ed23a
...
...
@@ -252,6 +252,7 @@ walkclosure(Node *func, NodeList **init)
void
walkcallclosure
(
Node
*
n
,
NodeList
**
init
)
{
USED
(
init
);
if
(
n
->
op
!=
OCALLFUNC
||
n
->
left
->
op
!=
OCLOSURE
)
{
dump
(
"walkcallclosure"
,
n
);
fatal
(
"abuse of walkcallclosure"
);
...
...
src/cmd/gc/esc.c
View file @
b29ed23a
...
...
@@ -949,6 +949,7 @@ esctag(EscState *e, Node *func)
Node
*
savefn
;
NodeList
*
ll
;
USED
(
e
);
func
->
esc
=
EscFuncTagged
;
// External functions must be assumed unsafe.
...
...
src/cmd/gc/mparith1.c
View file @
b29ed23a
...
...
@@ -288,7 +288,7 @@ mpatoflt(Mpflt *a, char *as)
s
=
as
;
base
=
-
1
;
while
(
base
==
-
1
)
{
switch
(
c
=
*
s
++
)
{
switch
(
*
s
++
)
{
case
'-'
:
case
'+'
:
break
;
...
...
src/cmd/gc/reflect.c
View file @
b29ed23a
...
...
@@ -471,6 +471,7 @@ typestruct(Type *t)
// Otherwise it will use a nil type word but still be usable
// by package runtime (because we always use the memory
// after the interface value, not the interface value itself).
USED
(
t
);
return
pkglookup
(
"*reflect.commonType"
,
weaktypepkg
);
}
...
...
src/cmd/ld/go.c
View file @
b29ed23a
...
...
@@ -579,6 +579,7 @@ loaddynlinker(char *file, char *pkg, char *p, int n)
char
*
pend
,
*
next
,
*
dynlinker
,
*
p0
;
USED
(
file
);
USED
(
pkg
);
pend
=
p
+
n
;
for
(;
p
<
pend
;
p
=
next
)
{
next
=
strchr
(
p
,
'\n'
);
...
...
src/pkg/runtime/thread_plan9.c
View file @
b29ed23a
...
...
@@ -356,5 +356,6 @@ static int8 badsignal[] = "runtime: signal received on thread not created by Go.
void
runtime
·
badsignal
(
int32
sig
)
{
USED
(
sig
);
runtime
·
pwrite
(
2
,
badsignal
,
sizeof
badsignal
-
1
,
-
1LL
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment