summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-29 14:27:52 -0600
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-02-10 05:43:56 +0100
commitae45a9884b82c2e2bfcf87afeb45260706a27adc (patch)
treec14fe4cb078934d6ad054e554fbfb5ac7f7a4bad
parentb33384a03c903d4a12a4e4f2805bfb53ff96ff3d (diff)
cbfstool: Fix build errors when building with clang
Now that we can set CC to an arbitrary compiler, fix issues that clang finds. Luckily, there were only two trivial errors. Change-Id: I0fd1f0f263a8ab7004f39cd36ed42d1a1cba5c04 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5081 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
-rw-r--r--util/cbfstool/linux_trampoline.c2
-rw-r--r--util/cbfstool/lzma/C/LzmaEnc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/util/cbfstool/linux_trampoline.c b/util/cbfstool/linux_trampoline.c
index 79d15769a2..368d63a807 100644
--- a/util/cbfstool/linux_trampoline.c
+++ b/util/cbfstool/linux_trampoline.c
@@ -137,5 +137,5 @@ const unsigned char trampoline[] = {
0x02, 0x09, 0x00, 0xf4, 0xeb, 0xfd
};
-void * const trampoline_start = &trampoline;
+const void * const trampoline_start = &trampoline;
const unsigned long trampoline_size = sizeof trampoline;
diff --git a/util/cbfstool/lzma/C/LzmaEnc.c b/util/cbfstool/lzma/C/LzmaEnc.c
index 9b18b19688..e112a4a8b1 100644
--- a/util/cbfstool/lzma/C/LzmaEnc.c
+++ b/util/cbfstool/lzma/C/LzmaEnc.c
@@ -2080,7 +2080,7 @@ static void LzmaEnc_Finish(CLzmaEncHandle pp)
if (p->mtMode)
MatchFinderMt_ReleaseStream(&p->matchFinderMt);
#else
- pp = pp;
+ (void)pp;
#endif
}