Skip to content

Commit

Permalink
Add missing (void) on functions without args
Browse files Browse the repository at this point in the history
Multiple functions without arguments were missing the `(void)` that
prevents them from being interpreted as not having a prototype. Newer
Clang versions started printing warnings for that in pedantic mode.
  • Loading branch information
athre0z committed May 21, 2023
1 parent c6b1d5d commit 685c335
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/Zycore/API/Memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ typedef enum ZyanMemoryPageProtection_
*
* @return The system page size.
*/
ZYCORE_EXPORT ZyanU32 ZyanMemoryGetSystemPageSize();
ZYCORE_EXPORT ZyanU32 ZyanMemoryGetSystemPageSize(void);

/**
* Returns the system allocation granularity.
Expand All @@ -100,7 +100,7 @@ ZYCORE_EXPORT ZyanU32 ZyanMemoryGetSystemPageSize();
*
* @return The system allocation granularity.
*/
ZYCORE_EXPORT ZyanU32 ZyanMemoryGetSystemAllocationGranularity();
ZYCORE_EXPORT ZyanU32 ZyanMemoryGetSystemAllocationGranularity(void);

/* ---------------------------------------------------------------------------------------------- */
/* Memory management */
Expand Down
4 changes: 2 additions & 2 deletions src/API/Memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
/* General */
/* ---------------------------------------------------------------------------------------------- */

ZyanU32 ZyanMemoryGetSystemPageSize()
ZyanU32 ZyanMemoryGetSystemPageSize(void)
{
#if defined(ZYAN_WINDOWS)

Expand All @@ -60,7 +60,7 @@ ZyanU32 ZyanMemoryGetSystemPageSize()
#endif
}

ZyanU32 ZyanMemoryGetSystemAllocationGranularity()
ZyanU32 ZyanMemoryGetSystemAllocationGranularity(void)
{
#if defined(ZYAN_WINDOWS)

Expand Down

0 comments on commit 685c335

Please sign in to comment.