[builtins] Fixing broken bot building on linux with -Werror

Returning a void expression is bad.

llvm-svn: 248346
This commit is contained in:
Chris Bieneman 2015-09-22 23:35:24 +00:00
parent a5206ce72a
commit be61720c4e
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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