From 4ecb16abc344bb6d17fd8adfd2b9eb0045377334 Mon Sep 17 00:00:00 2001 From: Juan Pablo Ramos Date: Mon, 5 Jun 2023 11:17:48 -0600 Subject: [PATCH] Fix xcode 14.3 deprecation warning "Function declaration without a prototype" --- Source/Details/ASThread.h | 2 +- Source/Layout/ASDimensionInternal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,