Freestyle: fix compilation with strict flags used
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 26 Mar 2013 08:05:56 +0000 (08:05 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 26 Mar 2013 08:05:56 +0000 (08:05 +0000)
source/blender/blenkernel/intern/freestyle.c

index bcbc3dd99c680d88856d31826d0dc1adcdbdf602..56236e3effd6ce6b6ecd7128782e601d6d6d9eb3 100644 (file)
@@ -41,9 +41,9 @@
 #include "BLI_math.h"
 
 // function declarations
-static FreestyleLineSet *alloc_lineset();
+static FreestyleLineSet *alloc_lineset(void);
 static void copy_lineset(FreestyleLineSet *new_lineset, FreestyleLineSet *lineset);
-static FreestyleModuleConfig *alloc_module();
+static FreestyleModuleConfig *alloc_module(void);
 static void copy_module(FreestyleModuleConfig *new_module, FreestyleModuleConfig *module);
 
 void BKE_freestyle_config_init(FreestyleConfig *config)
@@ -120,7 +120,7 @@ static void copy_lineset(FreestyleLineSet *new_lineset, FreestyleLineSet *linese
        strcpy(new_lineset->name, lineset->name);
 }
 
-static FreestyleModuleConfig *alloc_module()
+static FreestyleModuleConfig *alloc_module(void)
 {
        return (FreestyleModuleConfig *)MEM_callocN(sizeof(FreestyleModuleConfig), "style module configuration");
 }
@@ -166,7 +166,7 @@ void BKE_freestyle_lineset_unique_name(FreestyleConfig *config, FreestyleLineSet
                       sizeof(lineset->name));
 }
 
-static FreestyleLineSet *alloc_lineset()
+static FreestyleLineSet *alloc_lineset(void)
 {
        return (FreestyleLineSet *)MEM_callocN(sizeof(FreestyleLineSet), "Freestyle line set");
 }