summaryrefslogtreecommitdiff
path: root/src/cmd/prof
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-08-25 16:08:13 -0400
committerRuss Cox <rsc@golang.org>2011-08-25 16:08:13 -0400
commit6fb4eae836540e218606c781206509001a503146 (patch)
treed3e502538f43f305a7b472902a9f4877a143ea94 /src/cmd/prof
parentaeb64ebedced39d5f9cc45765b961e2d75462779 (diff)
downloadgo-6fb4eae836540e218606c781206509001a503146.tar.gz
build: fix unused parameters
Found with gcc 4.6 -Wunused -Wextra but should be applicable to Plan 9 too. R=ken2 CC=golang-dev http://codereview.appspot.com/4958044
Diffstat (limited to 'src/cmd/prof')
-rw-r--r--src/cmd/prof/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/prof/main.c b/src/cmd/prof/main.c
index f36759cd3..f0acaf1c0 100644
--- a/src/cmd/prof/main.c
+++ b/src/cmd/prof/main.c
@@ -386,6 +386,8 @@ addtohistogram(uvlong pc, uvlong callerpc, uvlong sp)
{
int h;
PC *x;
+
+ USED(sp);
h = (pc + callerpc*101) % Ncounters;
for(x = counters[h]; x != NULL; x = x->next) {
@@ -437,6 +439,8 @@ uvlong nextpc;
void
xptrace(Map *map, uvlong pc, uvlong sp, Symbol *sym)
{
+ USED(map);
+
char buf[1024];
if(sym == nil){
fprint(2, "syms\n");