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
648f25b2
Commit
648f25b2
authored
May 21, 2011
by
Dave Cheney
Committed by
Ian Lance Taylor
May 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5l: fix set but not used warnings
R=rsc, iant CC=golang-dev
https://golang.org/cl/4538083
parent
e4b94224
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
src/cmd/5l/asm.c
src/cmd/5l/asm.c
+1
-6
src/cmd/5l/obj.c
src/cmd/5l/obj.c
+1
-2
src/cmd/5l/span.c
src/cmd/5l/span.c
+0
-2
No files found.
src/cmd/5l/asm.c
View file @
648f25b2
...
@@ -295,15 +295,12 @@ asmb(void)
...
@@ -295,15 +295,12 @@ asmb(void)
{
{
int32
t
;
int32
t
;
int
a
,
dynsym
;
int
a
,
dynsym
;
uint32
va
,
fo
,
w
,
symo
,
startva
,
elfsymo
,
elfstro
,
elfsymsize
;
uint32
fo
,
symo
,
startva
,
elfsymo
,
elfstro
,
elfsymsize
;
int
strtabsize
;
ElfEhdr
*
eh
;
ElfEhdr
*
eh
;
ElfPhdr
*
ph
,
*
pph
;
ElfPhdr
*
ph
,
*
pph
;
ElfShdr
*
sh
;
ElfShdr
*
sh
;
Section
*
sect
;
Section
*
sect
;
strtabsize
=
0
;
if
(
debug
[
'v'
])
if
(
debug
[
'v'
])
Bprint
(
&
bso
,
"%5.2f asmb
\n
"
,
cputime
());
Bprint
(
&
bso
,
"%5.2f asmb
\n
"
,
cputime
());
Bflush
(
&
bso
);
Bflush
(
&
bso
);
...
@@ -467,9 +464,7 @@ asmb(void)
...
@@ -467,9 +464,7 @@ asmb(void)
/* elf arm */
/* elf arm */
eh
=
getElfEhdr
();
eh
=
getElfEhdr
();
fo
=
HEADR
;
fo
=
HEADR
;
va
=
INITTEXT
;
startva
=
INITTEXT
-
fo
;
/* va of byte 0 of file */
startva
=
INITTEXT
-
fo
;
/* va of byte 0 of file */
w
=
textsize
;
/* This null SHdr must appear before all others */
/* This null SHdr must appear before all others */
sh
=
newElfShdr
(
elfstr
[
ElfStrEmpty
]);
sh
=
newElfShdr
(
elfstr
[
ElfStrEmpty
]);
...
...
src/cmd/5l/obj.c
View file @
648f25b2
...
@@ -412,7 +412,7 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn)
...
@@ -412,7 +412,7 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn)
{
{
int32
ipc
;
int32
ipc
;
Prog
*
p
;
Prog
*
p
;
Sym
*
h
[
NSYM
],
*
s
,
*
di
;
Sym
*
h
[
NSYM
],
*
s
;
int
v
,
o
,
r
,
skip
;
int
v
,
o
,
r
,
skip
;
uint32
sig
;
uint32
sig
;
char
*
name
;
char
*
name
;
...
@@ -424,7 +424,6 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn)
...
@@ -424,7 +424,6 @@ ldobj1(Biobuf *f, char *pkg, int64 len, char *pn)
lastp
=
nil
;
lastp
=
nil
;
ntext
=
0
;
ntext
=
0
;
eof
=
Boffset
(
f
)
+
len
;
eof
=
Boffset
(
f
)
+
len
;
di
=
S
;
src
[
0
]
=
0
;
src
[
0
]
=
0
;
newloop:
newloop:
...
...
src/cmd/5l/span.c
View file @
648f25b2
...
@@ -168,7 +168,6 @@ span(void)
...
@@ -168,7 +168,6 @@ span(void)
Optab
*
o
;
Optab
*
o
;
int
m
,
bflag
,
i
,
v
;
int
m
,
bflag
,
i
,
v
;
int32
c
,
otxt
,
out
[
6
];
int32
c
,
otxt
,
out
[
6
];
int
lastthumb
=
-
1
;
Section
*
sect
;
Section
*
sect
;
uchar
*
bp
;
uchar
*
bp
;
...
@@ -187,7 +186,6 @@ span(void)
...
@@ -187,7 +186,6 @@ span(void)
p
->
pc
=
c
;
p
->
pc
=
c
;
cursym
->
value
=
c
;
cursym
->
value
=
c
;
lastthumb
=
thumb
;
autosize
=
p
->
to
.
offset
+
4
;
autosize
=
p
->
to
.
offset
+
4
;
if
(
p
->
from
.
sym
!=
S
)
if
(
p
->
from
.
sym
!=
S
)
p
->
from
.
sym
->
value
=
c
;
p
->
from
.
sym
->
value
=
c
;
...
...
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