Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
9a6fd41a
Commit
9a6fd41a
authored
Nov 19, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
silence gcc warnings: missing prototypes and unused variables
R=ken OCL=19583 CL=19583
parent
f1547e51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
gen.c
src/cmd/6g/gen.c
+2
-1
opt.h
src/cmd/6g/opt.h
+1
-0
reg.c
src/cmd/6g/reg.c
+3
-3
No files found.
src/cmd/6g/gen.c
View file @
9a6fd41a
...
...
@@ -6,6 +6,7 @@
#undef EXTERN
#define EXTERN
#include "gg.h"
#include "opt.h"
enum
{
...
...
@@ -515,7 +516,7 @@ swgen(Node *n)
Case
*
s0
,
*
se
,
*
s
,
*
sa
;
Prog
*
p1
,
*
dflt
;
int32
lno
;
int
any
,
nc
,
w
;
int
any
,
nc
;
Iter
save1
,
save2
;
// botch - put most of this code in
...
...
src/cmd/6g/opt.h
View file @
9a6fd41a
...
...
@@ -149,6 +149,7 @@ Bits blsh(uint);
int
beq
(
Bits
,
Bits
);
int
bset
(
Bits
,
uint
);
int
Qconv
(
Fmt
*
fp
);
int
bitno
(
int32
);
/*
* reg.c
...
...
src/cmd/6g/reg.c
View file @
9a6fd41a
...
...
@@ -36,7 +36,7 @@
#define P2R(p) (Reg*)(p->reg)
#define MAGIC 0xb00fbabe
static
first
=
1
;
static
int
first
=
1
;
static
void
dumpit
(
char
*
str
,
Reg
*
r0
);
static
int
noreturn
(
Prog
*
p
);
...
...
@@ -73,8 +73,8 @@ rcmp(const void *a1, const void *a2)
void
regopt
(
Prog
*
firstp
)
{
Reg
*
r
,
*
r1
,
*
r2
;
Prog
*
p
1
,
*
p
;
Reg
*
r
,
*
r1
;
Prog
*
p
;
int
i
,
z
,
nr
;
uint32
vreg
;
Bits
bit
;
...
...
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