diff --git a/Source/Details/ASThread.h b/Source/Details/ASThread.h index 0ef3d325a..d5187a358 100644 --- a/Source/Details/ASThread.h +++ b/Source/Details/ASThread.h @@ -20,7 +20,7 @@ #import #import -ASDISPLAYNODE_INLINE AS_WARN_UNUSED_RESULT BOOL ASDisplayNodeThreadIsMain() +ASDISPLAYNODE_INLINE AS_WARN_UNUSED_RESULT BOOL ASDisplayNodeThreadIsMain(void) { return 0 != pthread_main_np(); } diff --git a/Source/Layout/ASDimensionInternal.h b/Source/Layout/ASDimensionInternal.h index dced2ffae..51dcdf75b 100644 --- a/Source/Layout/ASDimensionInternal.h +++ b/Source/Layout/ASDimensionInternal.h @@ -38,7 +38,7 @@ typedef struct { /** * Returns an ASLayoutElementSize with default values. */ -ASDISPLAYNODE_INLINE AS_WARN_UNUSED_RESULT ASLayoutElementSize ASLayoutElementSizeMake() +ASDISPLAYNODE_INLINE AS_WARN_UNUSED_RESULT ASLayoutElementSize ASLayoutElementSizeMake(void) { return (ASLayoutElementSize){ .width = ASDimensionAuto,