diff options
author | Dongkyun Son <dongkyun.s@samsung.com> | 2020-01-03 19:50:31 +0900 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2020-01-03 19:51:09 +0900 |
commit | 4600198816924dd14a0444a2c0c2887e5a9650ee (patch) | |
tree | 54e9376eb5f67656f650deeef439990b3ee84bba | |
parent | d4bd210c4fbe4369667078ff79f9b59143cfe7d7 (diff) | |
download | db4-accepted/tizen_7.0_base_tool_hotfix.tar.gz db4-accepted/tizen_7.0_base_tool_hotfix.tar.bz2 db4-accepted/tizen_7.0_base_tool_hotfix.zip |
Fixes gcc8 build error:tizen_7.0_m2_releasetizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_base/20201208.051733submit/tizen_base/20201208.051231submit/tizen_base/20201207.055733submit/tizen_base/20200108.035402submit/tizen_base/20200107.090921submit/tizen_7.0_base_hotfix/20221115.161501submit/tizen_7.0_base/20221028.200901submit/tizen_6.5_base/20211027.200501submit/tizen_6.5_base/20211027.183101submit/tizen_6.5_base/20211026.180901submit/tizen_6.0_base_hotfix/20201102.162701submit/tizen_6.0_base_hotfix/20201030.192501submit/tizen_6.0_base/20201029.184801accepted/tizen/base/20200113.064835accepted/tizen/7.0/base/tool/hotfix/20221115.084835accepted/tizen/7.0/base/tool/20221028.113043accepted/tizen/7.0/base/hotfix/20230714.003706accepted/tizen/7.0/base/20230714.002851accepted/tizen/6.5/base/tool/20211027.112313accepted/tizen/6.5/base/20230714.002441accepted/tizen/6.0/base/tool/hotfix/20201102.085909accepted/tizen/6.0/base/tool/hotfix/20201030.124735accepted/tizen/6.0/base/tool/20201029.111918accepted/tizen/6.0/base/20230713.142814accepted/tizen/6.0/base/20201029.110402tizen_7.0_base_hotfixtizen_7.0_basetizen_6.5_basetizen_6.0_base_hotfixtizen_6.0_baseaccepted/tizen_7.0_base_tool_hotfixaccepted/tizen_7.0_base_toolaccepted/tizen_7.0_base_hotfixaccepted/tizen_7.0_baseaccepted/tizen_6.5_base_toolaccepted/tizen_6.5_baseaccepted/tizen_6.0_base_tool_hotfixaccepted/tizen_6.0_base_toolaccepted/tizen_6.0_base
In file included from ../src/dbinc/mutex_int.h:12,
from ../src/dbinc/mutex.h:15,
from ./db_int.h:1113,
from ../lang/cxx/cxx_channel.cpp:11:
../src/dbinc/atomic.h:179:19: error:
definition of 'int __atomic_compare_exchange(db_atomic_t*, atomic_value_t, atomic_value_t)'
ambiguates built-in declaration
'bool __atomic_compare_exchange(long unsigned int, volatile void*, void*, void*, int, int)'
static inline int __atomic_compare_exchange(
^~~~~~~~~~~~~~~~~~~~~~~~~
Change-Id: I733aeb261576b76cdfd83ef54c33e2919ebfc9bf
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
-rw-r--r-- | dbinc/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbinc/atomic.h b/dbinc/atomic.h index 0034dcc5..fa7ba93d 100644 --- a/dbinc/atomic.h +++ b/dbinc/atomic.h @@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val; #define atomic_inc(env, p) __atomic_inc(p) #define atomic_dec(env, p) __atomic_dec(p) #define atomic_compare_exchange(env, p, o, n) \ - __atomic_compare_exchange((p), (o), (n)) + __db_atomic_compare_exchange((p), (o), (n)) static inline int __atomic_inc(db_atomic_t *p) { int temp; @@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic_t *p) * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html * which configure could be changed to use. */ -static inline int __atomic_compare_exchange( +static inline int __db_atomic_compare_exchange( db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval) { atomic_value_t was; |