Fix compiler warnings on macOS (#9128)

## Problem

Compilation of neon extension on macOS produces a warning
```
pgxn/neon/neon_perf_counters.c:50:1: error: non-void function does not return a value [-Werror,-Wreturn-type]
```

## Summary of changes
- Change the return type of `NeonPerfCountersShmemInit` to void
This commit is contained in:
Alexander Bayandin
2024-09-24 19:11:31 +01:00
committed by GitHub
parent c47f355ec1
commit 523cf71721
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ NeonPerfCountersShmemSize(void)
return size;
}
bool
void
NeonPerfCountersShmemInit(void)
{
bool found;

View File

@@ -105,7 +105,7 @@ extern neon_per_backend_counters *neon_per_backend_counters_shared;
extern void inc_getpage_wait(uint64 latency);
extern Size NeonPerfCountersShmemSize(void);
extern bool NeonPerfCountersShmemInit(void);
extern void NeonPerfCountersShmemInit(void);
#endif /* NEON_PERF_COUNTERS_H */