1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-28 15:33:37 +02:00

Comply with -Wstrict-prototypes

This commit is contained in:
Guillaume Chatelet 2022-04-13 13:21:32 +02:00 committed by GitHub
parent 188d0d3c38
commit dedea3a5a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ typedef struct {
Leaf leaf_80000004; // brand string
} Leaves;
static Leaves ReadLeaves() {
static Leaves ReadLeaves(void) {
const Leaf leaf_0 = GetCpuidLeaf(0, 0);
const uint32_t max_cpuid_leaf = leaf_0.eax;
const Leaf leaf_80000000 = GetCpuidLeaf(0x80000000, 0);