From ceb82da99f9b9bc0629b6e3689dd19c988f4cd0b Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Thu, 20 Dec 2012 14:24:08 -0800 Subject: 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 Reviewed-on: http://review.coreboot.org/2068 Tested-by: build bot (Jenkins) --- util/xcompile/xcompile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/xcompile') 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 } -- cgit v1.2.3