]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testcshared, misc/cgo/testshared: fix clang warnings and errors
authorDave Cheney <dave@cheney.net>
Thu, 30 Apr 2015 01:57:34 +0000 (11:57 +1000)
committerDave Cheney <dave@cheney.net>
Thu, 30 Apr 2015 17:08:15 +0000 (17:08 +0000)
commitccaaf1f13417b4fdc56ac571f22f8b6dd8c7c8e1
tree5ba470bd3e8db1068bfb4ea23b44c038359e9b0e
parent42bb59a37212201eac68006b8bb7a2bcc4f160ad
misc/cgo/testcshared, misc/cgo/testshared: fix clang warnings and errors

Fix several warnings generated on the linux-amd64-clang builder
and make it clear to clang that -znow is a linker only flag.

Tested with

    env CC=clang-3.5 ./all.bash
    env CC=gcc-4.8 ./all.bash

Change-Id: I5ca7366ba8bf6221a36d25a2157dda4b4f3e16fa
Reviewed-on: https://go-review.googlesource.com/9523
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testcshared/main0.c
src/cmd/internal/ld/lib.go