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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-03-07 06:24:23 +0300
committerJoshua Leung <aligorith@gmail.com>2008-03-07 06:24:23 +0300
commitb4e13ae575b886d245c4953150cd23edbf91c4ba (patch)
tree48ed9cbca2f4006ff9412294b3fc37f475b4067f /source/blender/blenloader
parent5ea3956e4e6398fe27a4ce7d6b1c5a1a29134c40 (diff)
Another big purge of warnings. (Main culprits this time were Campbell and Geoffrey):
* no newline at end of file (2-3) * uninitialised vars (1) * unused vars (1-2) * assigning/comparing pointers and ints (numerous) * etc.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index a48ca83c381..532e16b7489 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1425,12 +1425,7 @@ static void direct_link_brush(FileData *fd, Brush *brush)
static void direct_link_script(FileData *fd, Script *script)
{
script->id.us = 1;
- script->py_draw =
- script->py_event =
- script->py_button =
- script->py_browsercallback =
- script->py_globaldict =
- script->flags = NULL;
+ SCRIPT_SET_NULL(script)
}
/* ************ READ CurveMapping *************** */
@@ -3742,7 +3737,7 @@ static void lib_link_screen(FileData *fd, Main *main)
/*sc->script = NULL; - 2.45 set to null, better re-run the script */
if (scpt->script) {
scpt->script = newlibadr(fd, sc->id.lib, scpt->script);
- SCRIPT_SET_NULL(scpt->script);
+ SCRIPT_SET_NULL(scpt->script)
}
}
else if(sl->spacetype==SPACE_OOPS) {
@@ -3920,7 +3915,7 @@ void lib_link_screen_restore(Main *newmain, Scene *curscene)
/*sc->script = NULL; - 2.45 set to null, better re-run the script */
if (scpt->script) {
- SCRIPT_SET_NULL(scpt->script);
+ SCRIPT_SET_NULL(scpt->script)
}
}
else if(sl->spacetype==SPACE_OOPS) {