summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-12-20 14:24:08 -0800
committerDavid Hendricks <dhendrix@chromium.org>2012-12-21 20:18:31 +0100
commitceb82da99f9b9bc0629b6e3689dd19c988f4cd0b (patch)
tree0ee5b4f722d866f8c5ad5beb96df53152246063c
parentec3daf7e08b4c42b45fc2c84b92820af6688e11b (diff)
downloadcoreboot-ceb82da99f9b9bc0629b6e3689dd19c988f4cd0b.tar.xz
add a return type to test function used by xcompile
This fixes a minor bug that could cause testcc to fail unexpectedly. Change-Id: Ib75d343104b6937682c05acf5232596aac83f105 Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2068 Tested-by: build bot (Jenkins)
-rw-r--r--util/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index fdc521338d..42391764c5 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -40,7 +40,7 @@ testcc() {
local tmp_c="$TMPFILE.c"
local tmp_o="$TMPFILE.o"
rm -f "$tmp_c" "$tmp_o"
- echo "_start(void) {}" >"$tmp_c"
+ echo "void _start(void) {}" >"$tmp_c"
"$1" -nostdlib -Werror $2 "$tmp_c" -o "$tmp_o" >/dev/null 2>&1
}