Skip to content

Commit 5065a9a

Browse files
authored
Address -Wstrict-prototypes warning for bson_atomic_thread_fence() (#928)
1 parent ee2001b commit 5065a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libbson/src/bson/bson-atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ bson_atomic_ptr_fetch (void *volatile const *ptr, enum bson_memory_order ord)
722722
* @brief Generate a full-fence memory barrier at the call site.
723723
*/
724724
static BSON_INLINE void
725-
bson_atomic_thread_fence ()
725+
bson_atomic_thread_fence (void)
726726
{
727727
BSON_IF_MSVC (MemoryBarrier ();)
728728
BSON_IF_GNU_LIKE (__sync_synchronize ();)

0 commit comments

Comments
 (0)