diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-03 15:30:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-03 15:30:59 +0300 |
commit | cd972535027a73ba70069051fe9038b6a8b5696a (patch) | |
tree | b50696bddbc710192b89e34fcdd1e82e6c8073b7 /source/blender/python | |
parent | aca76ddb502cbf0ee7888c3356f9f35240919410 (diff) |
- added GCC warning -Wstrict-prototypes
- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/generic/noise.c | 2 | ||||
-rw-r--r-- | source/blender/python/intern/stubs.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/python/generic/noise.c b/source/blender/python/generic/noise.c index b12ca47bdda..ea3687010ce 100644 --- a/source/blender/python/generic/noise.c +++ b/source/blender/python/generic/noise.c @@ -174,7 +174,7 @@ static void setRndSeed(int seed) } /* float number in range [0, 1) using the mersenne twister rng */ -static float frand() +static float frand(void) { unsigned long y; diff --git a/source/blender/python/intern/stubs.c b/source/blender/python/intern/stubs.c index ee124e2c06f..abf329b5fd0 100644 --- a/source/blender/python/intern/stubs.c +++ b/source/blender/python/intern/stubs.c @@ -27,11 +27,11 @@ */ /* python, will come back */ -//void BPY_run_python_script() {} -//void BPY_start_python() {} +//void BPY_run_python_script(void) {} +//void BPY_start_python(void) {} void BPY_call_importloader(const char *filepath) {(void)filepath;} -//void BPY_free_compiled_text() {} -void BPY_pyconstraint_eval() {} -void BPY_pyconstraint_target() {} -int BPY_is_pyconstraint() {return 0;} -void BPY_pyconstraint_update() {} +//void BPY_free_compiled_text(void) {} +void BPY_pyconstraint_eval(void) {} +void BPY_pyconstraint_target(void) {} +int BPY_is_pyconstraint(void) {return 0;} +void BPY_pyconstraint_update(void) {} |