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
9094941a
Commit
9094941a
authored
Jul 18, 2013
by
Dave Cheney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/ld: trivial: fix unused parameter pedantry
R=golang-dev, r, rsc CC=golang-dev
https://golang.org/cl/11436043
parent
4aa6d353
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/cmd/ld/lib.c
src/cmd/ld/lib.c
+3
-0
No files found.
src/cmd/ld/lib.c
View file @
9094941a
...
@@ -1614,6 +1614,7 @@ static int32
...
@@ -1614,6 +1614,7 @@ static int32
pctospadj
(
Sym
*
sym
,
int32
oldval
,
Prog
*
p
,
int32
phase
,
int32
arg
)
pctospadj
(
Sym
*
sym
,
int32
oldval
,
Prog
*
p
,
int32
phase
,
int32
arg
)
{
{
USED
(
arg
);
USED
(
arg
);
USED
(
sym
);
if
(
oldval
==
-
1
)
// starting
if
(
oldval
==
-
1
)
// starting
oldval
=
0
;
oldval
=
0
;
...
@@ -1634,6 +1635,8 @@ pctospadj(Sym *sym, int32 oldval, Prog *p, int32 phase, int32 arg)
...
@@ -1634,6 +1635,8 @@ pctospadj(Sym *sym, int32 oldval, Prog *p, int32 phase, int32 arg)
static
int32
static
int32
pctopcdata
(
Sym
*
sym
,
int32
oldval
,
Prog
*
p
,
int32
phase
,
int32
arg
)
pctopcdata
(
Sym
*
sym
,
int32
oldval
,
Prog
*
p
,
int32
phase
,
int32
arg
)
{
{
USED
(
sym
);
if
(
phase
==
0
||
p
->
as
!=
APCDATA
||
p
->
from
.
offset
!=
arg
)
if
(
phase
==
0
||
p
->
as
!=
APCDATA
||
p
->
from
.
offset
!=
arg
)
return
oldval
;
return
oldval
;
if
((
int32
)
p
->
to
.
offset
!=
p
->
to
.
offset
)
{
if
((
int32
)
p
->
to
.
offset
!=
p
->
to
.
offset
)
{
...
...
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