Kaydet (Commit) 00e93626 authored tarafından Luboš Luňák's avatar Luboš Luňák

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
üst 8a5961a7
...@@ -349,12 +349,9 @@ void osl_interlockedCountCheckForSingleCPU(void) ...@@ -349,12 +349,9 @@ void osl_interlockedCountCheckForSingleCPU(void)
//java. Quite possibly also required/helpful for s390x/s390 and maybe some //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 //others. Without it the dlopen of libjvm.so will fail with __data_start
//not found //not found
#pragma weak __data_start extern int __data_start[] __attribute__((weak));
extern int __data_start[]; extern int data_start[] __attribute__((weak));
#pragma weak data_start extern int _end[] __attribute__((weak));
extern int data_start[];
#pragma weak _end
extern int _end[];
static void *dummy[] __attribute__((used)) = {__data_start, data_start, _end}; static void *dummy[] __attribute__((used)) = {__data_start, data_start, _end};
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment