diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-04-05 07:22:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 07:22:33 (GMT) |
commit | 119f67de08f1fddc2a3f7b7caac7454cb57ef800 (patch) | |
tree | a3549c73af276f62bf274f606b4ad3dd683fa363 /PC/launcher2.c | |
parent | 1a8f862e329c3872a11d4ef8eb85cf353ca2f4d5 (diff) | |
download | cpython-119f67de08f1fddc2a3f7b7caac7454cb57ef800.zip cpython-119f67de08f1fddc2a3f7b7caac7454cb57ef800.tar.gz cpython-119f67de08f1fddc2a3f7b7caac7454cb57ef800.tar.bz2 |
gh-103167: Fix `-Wstrict-prototypes` warnings by using `(void)` for functions with no args (GH-103168)
Diffstat (limited to 'PC/launcher2.c')
-rw-r--r-- | PC/launcher2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/PC/launcher2.c b/PC/launcher2.c index 9326653..bb500d4 100644 --- a/PC/launcher2.c +++ b/PC/launcher2.c @@ -132,7 +132,7 @@ typedef BOOL (*PIsWow64Process2)(HANDLE, USHORT*, USHORT*); USHORT -_getNativeMachine() +_getNativeMachine(void) { static USHORT _nativeMachine = IMAGE_FILE_MACHINE_UNKNOWN; if (_nativeMachine == IMAGE_FILE_MACHINE_UNKNOWN) { @@ -163,14 +163,14 @@ _getNativeMachine() bool -isAMD64Host() +isAMD64Host(void) { return _getNativeMachine() == IMAGE_FILE_MACHINE_AMD64; } bool -isARM64Host() +isARM64Host(void) { return _getNativeMachine() == IMAGE_FILE_MACHINE_ARM64; } |