[glib] configure: Make GNUC visibility attribute test more reliable.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] configure: Make GNUC visibility attribute test more reliable.
- Date: Thu, 22 Nov 2012 16:38:25 +0000 (UTC)
commit 276cf6ceeea9489ef1ed23788c3c42dee5fcd72d
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Thu Nov 22 16:56:52 2012 +0100
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.
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f8ef232..4dc7565 100644
--- a/configure.ac
+++ b/configure.ac
@@ -847,7 +847,7 @@ __attribute__ ((visibility ("default")))
f_default (void)
{
}
-int main (int argc, char **argv)
+int main (void)
{
f_hidden();
f_internal();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]