forked from OSchip/llvm-project
[builtins] Fixing broken bot building on linux with -Werror
Returning a void expression is bad. llvm-svn: 248346
This commit is contained in:
parent
a5206ce72a
commit
be61720c4e
|
@ -21,7 +21,8 @@
|
|||
#include <stdatomic.h>
|
||||
#undef atomic_flag_clear
|
||||
void atomic_flag_clear(volatile atomic_flag *object) {
|
||||
return __c11_atomic_store(&(object)->_Value, 0, __ATOMIC_SEQ_CST);
|
||||
__c11_atomic_store(&(object)->_Value, 0, __ATOMIC_SEQ_CST);
|
||||
return;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -22,7 +22,8 @@
|
|||
#undef atomic_flag_clear_explicit
|
||||
void atomic_flag_clear_explicit(volatile atomic_flag *object,
|
||||
memory_order order) {
|
||||
return __c11_atomic_store(&(object)->_Value, 0, order);
|
||||
__c11_atomic_store(&(object)->_Value, 0, order);
|
||||
return;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue