diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-13 13:52:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-13 13:52:18 +0300 |
commit | 0955c664aa7c5fc5f0bd345c58219c40f04ab9c1 (patch) | |
tree | 20b6a2ab2e1130d75d119eba09f3b195a33a9434 /source/blender/python/generic/noise.c | |
parent | f3bd89b1b7a86778ff4c633a6b4115309a1b3c7e (diff) |
fix for warnings from Sparse static source code checker, mostly BKE/BLI and python functions.
- use NULL rather then 0 where possible (makes code & function calls more readable IMHO).
- set static variables and functions (exposed some unused vars/funcs).
- use func(void) rather then func() for definitions.
Diffstat (limited to 'source/blender/python/generic/noise.c')
-rw-r--r-- | source/blender/python/generic/noise.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/python/generic/noise.c b/source/blender/python/generic/noise.c index f266a666274..36147493dc5 100644 --- a/source/blender/python/generic/noise.c +++ b/source/blender/python/generic/noise.c @@ -649,12 +649,12 @@ static struct PyModuleDef noise_module_def = { PyModuleDef_HEAD_INIT, "noise", /* m_name */ Noise__doc__, /* m_doc */ - 0, /* m_size */ + 0, /* m_size */ NoiseMethods, /* m_methods */ - 0, /* m_reload */ - 0, /* m_traverse */ - 0, /* m_clear */ - 0, /* m_free */ + NULL, /* m_reload */ + NULL, /* m_traverse */ + NULL, /* m_clear */ + NULL, /* m_free */ }; PyObject *BPyInit_noise(void) @@ -677,7 +677,7 @@ PyObject *BPyInit_noise(void) {(char *)"VORONOI_F2F1", NULL}, {(char *)"VORONOI_CRACKLE", NULL}, {(char *)"CELLNOISE", NULL}, - {0} + {NULL} }; static PyStructSequence_Desc noise_types_info_desc = { @@ -723,7 +723,7 @@ PyObject *BPyInit_noise(void) {(char *)"MINKOVSKY_HALF", NULL}, {(char *)"MINKOVSKY_FOUR", NULL}, {(char *)"MINKOVSKY", NULL}, - {0} + {NULL} }; static PyStructSequence_Desc noise_types_info_desc = { |