summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-04 18:00:55 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-04 18:03:34 +0100
commit00e93626d109594bb3eb58405c0b2cc205e6711c (patch)
treefd33b78ecde2bd35a547460b88f6d6dde32cef12 /sal
parentremove unused variables and code (diff)
downloadcore-00e93626d109594bb3eb58405c0b2cc205e6711c.tar.gz
core-00e93626d109594bb3eb58405c0b2cc205e6711c.zip
replace #pragma weak with __attribute__((weak))
They do the same in this case, but clang doesn't know the former and warns. Change-Id: I4895f80d4b25c147e073f3fea7db6fd2acfb84a4
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/util.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sal/osl/unx/util.c b/sal/osl/unx/util.c
index c4c56542e26a..cd8bc9af3353 100644
--- a/sal/osl/unx/util.c
+++ b/sal/osl/unx/util.c
@@ -349,12 +349,9 @@ void osl_interlockedCountCheckForSingleCPU(void)
//java. Quite possibly also required/helpful for s390x/s390 and maybe some
//others. Without it the dlopen of libjvm.so will fail with __data_start
//not found
-#pragma weak __data_start
-extern int __data_start[];
-#pragma weak data_start
-extern int data_start[];
-#pragma weak _end
-extern int _end[];
+extern int __data_start[] __attribute__((weak));
+extern int data_start[] __attribute__((weak));
+extern int _end[] __attribute__((weak));
static void *dummy[] __attribute__((used)) = {__data_start, data_start, _end};
#endif