Skip to content

Commit 543d4af

Browse files
ezyangfacebook-github-bot
authored andcommitted
Be strict prototypes clean. (#9516)
Summary: Signed-off-by: Edward Z. Yang <ezyang@fb.com> Pull Request resolved: #9516 Differential Revision: D8886493 Pulled By: ezyang fbshipit-source-id: fea974fd96c7d81126a129eb5b8b06eb1b028526
1 parent aa73348 commit 543d4af

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

aten/src/TH/THAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ typedef struct at_THAllocator THAllocator;
2525
/* default malloc/free allocator. malloc and realloc raise an error (using
2626
* THError) on allocation failure.
2727
*/
28-
TH_API THAllocator* getTHDefaultAllocator();
28+
TH_API THAllocator* getTHDefaultAllocator(void);
2929

3030
#ifdef __cplusplus
3131
// Sentinel value/type to help distinguish the file descriptor constructor from

aten/src/THC/THCAllocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#include "THCGeneral.h"
55

6-
THC_API THAllocator* getTHCudaHostAllocator();
7-
THC_API THAllocator* getTHCUVAAllocator();
6+
THC_API THAllocator* getTHCudaHostAllocator(void);
7+
THC_API THAllocator* getTHCUVAAllocator(void);
88
// IPC doesn't support (re)allocation
99

1010
#ifdef __cplusplus

aten/src/THC/THCCachingHostAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// Note that this allocator does not split larger allocations into smaller
2020
// blocks, unlike the caching device allocator.
2121
//
22-
THC_API THAllocator* getTHCCachingHostAllocator();
22+
THC_API THAllocator* getTHCCachingHostAllocator(void);
2323

2424
// Records an event in the specified stream. The allocation 'ptr' will not be
2525
// re-used until the event has occurred.

0 commit comments

Comments
 (0)