Ian Lance Taylor <[email protected]> writes:
> Rainer Orth <[email protected]> writes:
>
>> Unfortunately, the
>>
>> /vol/gcc/src/hg/trunk/local/libgo/syscalls/exec.go:11:14: error: imported
>> and not used: unsafe
>>
>> error remains. I've no idea what triggers it.
>
> Bother. Neither do I. I just looked through the code and it all looks
> fine. The reference to unsafe.Pointer will be parsed by
> Parse::operand. On one of the lines which uses unsafe.Pointer, it will
> see "unsafe", see that it is a package, and call package->set_used().
> That will set the flag which is later tested by Gogo::clear_file_scope
> to prevent the warning.
>
> I tried compiling the set of files which will be compiled on Solaris,
> but still couldn't recreate the problem.
Ok, I'll do some digging over the weekend. Perhaps I can figure it out.
Thanks.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University