[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tight-scope check confusion
From: |
Jim Meyering |
Subject: |
Re: tight-scope check confusion |
Date: |
Thu, 7 Nov 2013 06:55:57 -0800 |
On Wed, Nov 6, 2013 at 4:54 PM, Reuben Thomas <address@hidden> wrote:
> I turned on tight-scope by pointing it at a directory with a library in.
>
> To start with, it (somewhat confusingly) tells me that all my API functions
> should be static. It doesn't seem to have the option to say they should be
> extern. This is not so bad, of course: I can work out that I should have
> marked them extern.
>
> However, when I mark just one of the names extern in the C file, the test
> succeeds.
Hi Reuben,
Can you investigate, e.g., instrumenting those rules to see what's
happening (then I don't have to ask for instructions on how to
reproduce :-), for example, by, inserting "| tee /tmp/1" or similar in
piplelines to see what intermediate results look like?
Another way to avoid warnings is to configure the rule so that it
knows where your functions are declared. Override _gl_TS_headers to do
that.
Thanks,
Jim