Removed unused variables & GCC warning

This commit is contained in:
Duilio Protti 2016-02-13 19:53:02 -03:00
parent 58d38459aa
commit f796d7a7d6
1 changed files with 1 additions and 3 deletions

View File

@ -14,7 +14,6 @@ static gboolean initialized = FALSE;
void effects_save_effect(t_effect *effect) void effects_save_effect(t_effect *effect)
{ {
gchar datafile[256], path[256];
FILE *f; FILE *f;
gint32 i; gint32 i;
@ -32,8 +31,6 @@ void effects_save_effect(t_effect *effect)
void effects_load_effects(void) void effects_load_effects(void)
{ {
gchar path[255];
gchar datafile[255];
FILE *f; FILE *f;
gint32 finished = 0; gint32 finished = 0;
gint32 i, b, c, d, e; gint32 i, b, c, d, e;
@ -81,6 +78,7 @@ void effects_load_random_effect(t_effect *effect)
gint32 trash; gint32 trash;
if (!initialized) { if (!initialized) {
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
srand(trash); srand(trash);
initialized = TRUE; initialized = TRUE;
} }