[NFC] Properly suppress unused argument warning in __isOSVersionAtLeast()

Casting to non-void causes
  expression result unused [-Wunused-value]
This commit is contained in:
Arthur Eubanks 2022-06-06 19:38:50 -07:00
parent bed7d707ac
commit f9ac557567
1 changed files with 2 additions and 2 deletions

View File

@ -307,8 +307,8 @@ static void readSystemProperties(void) {
}
int32_t __isOSVersionAtLeast(int32_t Major, int32_t Minor, int32_t Subminor) {
(int32_t) Minor;
(int32_t) Subminor;
(void) Minor;
(void) Subminor;
static pthread_once_t once = PTHREAD_ONCE_INIT;
pthread_once(&once, readSystemProperties);