mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
73d230bc25
commit
276cf6ceee
@ -847,7 +847,7 @@ __attribute__ ((visibility ("default")))
|
||||
f_default (void)
|
||||
{
|
||||
}
|
||||
int main (int argc, char **argv)
|
||||
int main (void)
|
||||
{
|
||||
f_hidden();
|
||||
f_internal();
|
||||
|
Loading…
Reference in New Issue
Block a user