configure: Make GNUC visibility attribute test more reliable.

Using "int main (int argc, char** argv)" in this test causes GCC to
issue two warnings about unused variable if CFLAGS envvar has
-Wunused-parameter (or just -Wextra). Those warnings are not related
to the attribute checking but they can make the test fail anyway.
This commit is contained in:
Krzesimir Nowak 2012-11-22 16:56:52 +01:00
parent 73d230bc25
commit 276cf6ceee

View File

@ -847,7 +847,7 @@ __attribute__ ((visibility ("default")))
f_default (void)
{
}
int main (int argc, char **argv)
int main (void)
{
f_hidden();
f_internal();