__const__ attribute can only be attached to the function prototype. Some
modern compiler tolerate it on inlined function declaration, but usually it should be attached to the prototype. This commit was SVN r13383.
Этот коммит содержится в:
родитель
a02d1c7c8d
Коммит
8d343cdbd9
@ -181,7 +181,8 @@ static inline uint16_t opal_swap_bytes2(uint16_t val)
|
|||||||
return r.bigval;
|
return r.bigval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint32_t opal_swap_bytes4(uint32_t val) __opal_attribute_const__
|
static inline uint32_t opal_swap_bytes4(uint32_t val) __opal_attribute_const__;
|
||||||
|
static inline uint32_t opal_swap_bytes4(uint32_t val)
|
||||||
{
|
{
|
||||||
union { uint32_t bigval;
|
union { uint32_t bigval;
|
||||||
uint8_t arrayval[4];
|
uint8_t arrayval[4];
|
||||||
@ -196,7 +197,8 @@ static inline uint32_t opal_swap_bytes4(uint32_t val) __opal_attribute_const__
|
|||||||
return r.bigval;
|
return r.bigval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint64_t opal_swap_bytes8(uint64_t val) __opal_attribute_const__
|
static inline uint64_t opal_swap_bytes8(uint64_t val) __opal_attribute_const__;
|
||||||
|
static inline uint64_t opal_swap_bytes8(uint64_t val)
|
||||||
{
|
{
|
||||||
union { uint64_t bigval;
|
union { uint64_t bigval;
|
||||||
uint8_t arrayval[8];
|
uint8_t arrayval[8];
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user