Avoid all other warnings
This commit is contained in:
parent
34484b9910
commit
b8a9f34639
|
@ -70,14 +70,20 @@ void ColoredSquare_set_color (ColoredSquare *this, int color)
|
|||
ColoredSquare* ColoredSquare_new (double a, int color)
|
||||
{
|
||||
static ColoredSquare_interface vtable =
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
(void* (*) (void *)) ColoredSquare_clone,
|
||||
(void (*) (void *)) Square_destroy,
|
||||
(void (*) (void *)) Square_destroy
|
||||
},
|
||||
(const char* (*) (Figure *)) ColoredSquare_type,
|
||||
(void (*) (Figure *)) ColoredSquare_draw,
|
||||
(double (*) (Figure *)) Square_area,
|
||||
(double (*) (Figure *)) Square_area
|
||||
},
|
||||
Square_resize,
|
||||
Square_diag_length,
|
||||
Square_diag_length
|
||||
},
|
||||
ColoredSquare_set_color
|
||||
};
|
||||
ColoredSquare *square = malloc (sizeof (*square));
|
||||
|
|
8
Square.c
8
Square.c
|
@ -101,12 +101,16 @@ double Square_diag_length (Square *this)
|
|||
Square* Square_new (double a)
|
||||
{
|
||||
static Square_interface vtable =
|
||||
{
|
||||
{
|
||||
{
|
||||
(void* (*) (void *)) Square_clone,
|
||||
(void (*) (void *)) Square_destroy,
|
||||
(void (*) (void *)) Square_destroy
|
||||
},
|
||||
(const char* (*) (Figure *)) Square_type,
|
||||
(void (*) (Figure *)) Square_draw,
|
||||
(double (*) (Figure *)) Square_area,
|
||||
(double (*) (Figure *)) Square_area
|
||||
},
|
||||
Square_resize,
|
||||
Square_diag_length
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue