summaryrefslogtreecommitdiffstats
path: root/darwin/PlatformHelpers.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-02-04 18:03:17 +0100
committerChristian Göttsche <cgzones@googlemail.com>2023-02-04 18:13:10 +0100
commitca7e92bd78368befa88a3a6d732d1595c388c660 (patch)
tree54c22c3db2c79737b3fe91dbaa4333eae034dae1 /darwin/PlatformHelpers.c
parentc9f654da96f9af05d599bc778575dd5b71a2c5ae (diff)
Use strict function prototypes also for defintions
freebsd/Platform.c:151:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] int Platform_getUptime() { ^ void
Diffstat (limited to 'darwin/PlatformHelpers.c')
-rw-r--r--darwin/PlatformHelpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/darwin/PlatformHelpers.c b/darwin/PlatformHelpers.c
index 1b9a246d..97f0741a 100644
--- a/darwin/PlatformHelpers.c
+++ b/darwin/PlatformHelpers.c
@@ -69,7 +69,7 @@ void Platform_getCPUBrandString(char* cpuBrandString, size_t cpuBrandStringSize)
}
// Adapted from https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment
-bool Platform_isRunningTranslated() {
+bool Platform_isRunningTranslated(void) {
int ret = 0;
size_t size = sizeof(ret);
errno = 0;
@@ -87,7 +87,7 @@ bool Platform_isRunningTranslated() {
return ret;
}
-double Platform_calculateNanosecondsPerMachTick() {
+double Platform_calculateNanosecondsPerMachTick(void) {
// Check if we can determine the timebase used on this system.
// If the API is unavailable assume we get our timebase in nanoseconds.
#ifndef HAVE_MACH_TIMEBASE_INFO

© 2014-2024 Faster IT GmbH | imprint | privacy policy