Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2016-04-25 19:47:47 +0300
committerSoumith Chintala <soumith@gmail.com>2016-04-25 19:47:47 +0300
commit4b70ba1b727f251db931d252c37f1e029a9d269f (patch)
tree6abcba105d8b346f2fffc1fc35994cb374cf0bfd
parente7f6444be8693163b37a38ed49e2e815d35e9984 (diff)
parent14f7fd824b7c409c1e2f1bfb1a2c08d9014ab64c (diff)
Merge pull request #657 from albanD/no_arg_fix
Remove some warning when compiling TH
-rw-r--r--lib/TH/THRandom.h2
-rw-r--r--lib/TH/generic/THStorage.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/TH/THRandom.h b/lib/TH/THRandom.h
index dd84a2b..28a14c0 100644
--- a/lib/TH/THRandom.h
+++ b/lib/TH/THRandom.h
@@ -25,7 +25,7 @@ typedef struct THGenerator {
#define torch_Generator "torch.Generator"
/* Manipulate THGenerator objects */
-TH_API THGenerator * THGenerator_new();
+TH_API THGenerator * THGenerator_new(void);
TH_API THGenerator * THGenerator_copy(THGenerator *self, THGenerator *from);
TH_API void THGenerator_free(THGenerator *gen);
diff --git a/lib/TH/generic/THStorage.h b/lib/TH/generic/THStorage.h
index 8952b35..79013d8 100644
--- a/lib/TH/generic/THStorage.h
+++ b/lib/TH/generic/THStorage.h
@@ -34,7 +34,7 @@ typedef struct THStorage
TH_API real* THStorage_(data)(const THStorage*);
TH_API long THStorage_(size)(const THStorage*);
-TH_API int THStorage_(elementSize)();
+TH_API int THStorage_(elementSize)(void);
/* slow access -- checks everything */
TH_API void THStorage_(set)(THStorage*, long, real);