aboutsummaryrefslogtreecommitdiffstats
path: root/cc/builder.go
diff options
context:
space:
mode:
authorNan Zhang <nanzhang@google.com>2017-03-27 14:27:58 -0700
committerNan Zhang <nanzhang@google.com>2017-03-27 14:27:58 -0700
commit43a485cfb1975d3265b7350a74229e5069ef9d08 (patch)
treed17b552e33243674af522499557430277e60f7f1 /cc/builder.go
parente7ee3c7bc233e6f87830ac6b795f3777382d476b (diff)
downloadbuild_soong-43a485cfb1975d3265b7350a74229e5069ef9d08.tar.gz
build_soong-43a485cfb1975d3265b7350a74229e5069ef9d08.tar.bz2
build_soong-43a485cfb1975d3265b7350a74229e5069ef9d08.zip
Removed unused return variables.
Sometimes it is confused that these variables are mixed with ninja parameters when invoking pctx.AndroidStaticRule()/SourcePathVariable(). Test: m -j Change-Id: Ibcf17eeed6ac79aafaa5edeec27427721b36e75a
Diffstat (limited to 'cc/builder.go')
-rw-r--r--cc/builder.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/builder.go b/cc/builder.go
index f3a4bcb4..cdfea92d 100644
--- a/cc/builder.go
+++ b/cc/builder.go
@@ -109,7 +109,7 @@ var (
},
"objcopyCmd", "prefix")
- stripPath = pctx.SourcePathVariable("stripPath", "build/soong/scripts/strip.sh")
+ _ = pctx.SourcePathVariable("stripPath", "build/soong/scripts/strip.sh")
strip = pctx.AndroidStaticRule("strip",
blueprint.RuleParams{
@@ -127,7 +127,7 @@ var (
Description: "empty file $out",
})
- copyGccLibPath = pctx.SourcePathVariable("copyGccLibPath", "build/soong/scripts/copygcclib.sh")
+ _ = pctx.SourcePathVariable("copyGccLibPath", "build/soong/scripts/copygcclib.sh")
copyGccLib = pctx.AndroidStaticRule("copyGccLib",
blueprint.RuleParams{
@@ -139,7 +139,7 @@ var (
},
"ccCmd", "cFlags", "libName")
- tocPath = pctx.SourcePathVariable("tocPath", "build/soong/scripts/toc.sh")
+ _ = pctx.SourcePathVariable("tocPath", "build/soong/scripts/toc.sh")
toc = pctx.AndroidStaticRule("toc",
blueprint.RuleParams{
@@ -159,7 +159,7 @@ var (
},
"cFlags", "tidyFlags")
- yasmCmd = pctx.SourcePathVariable("yasmCmd", "prebuilts/misc/${config.HostPrebuiltTag}/yasm/yasm")
+ _ = pctx.SourcePathVariable("yasmCmd", "prebuilts/misc/${config.HostPrebuiltTag}/yasm/yasm")
yasm = pctx.AndroidStaticRule("yasm",
blueprint.RuleParams{