got rid of compile warnings, added -Wall to AM_CFLAGS for now

This commit is contained in:
osboxes.org
2015-03-09 09:07:49 -06:00
parent 42c050c29f
commit efe4a24b7e
13 changed files with 25 additions and 36 deletions
+11 -12
View File
@@ -142,7 +142,8 @@ int flam3_interp_missing_colors(flam3_genome *cp) {
int str,enr;
int i,j,k;
double prcr;
minix = 0;
for (i=0; i<256; i++) {
if (cp->palette[i].index >= 0) {
minix = i;
@@ -158,7 +159,8 @@ int flam3_interp_missing_colors(flam3_genome *cp) {
}
wrapmin = minix + 256;
maxix = 255;
for (i=255;i>=0;i--) {
if (cp->palette[i].index >= 0) {
maxix = i;
@@ -176,7 +178,9 @@ int flam3_interp_missing_colors(flam3_genome *cp) {
/* Start of a range of negs */
str = i;
intl = i-1;
intr = i+1;
colorli = intl;
colorri = intr;
while (cp->palette[i].index<0 && i<256) {
enr = i;
intr = i+1;
@@ -290,7 +294,7 @@ int parse_flame_element(xmlNode *flame_node, flam3_genome *loc_current_cp) {
char *att_str;
int num_std_xforms=-1;
char tmps[2];
int i,j;
int i;
flam3_xform tmpcpy;
flam3_chaos_entry *xaos=NULL;
int num_xaos=0;
@@ -554,7 +558,7 @@ int parse_flame_element(xmlNode *flame_node, flam3_genome *loc_current_cp) {
}
} else if (!xmlStrcmp(chld_node->name, (const xmlChar *)"colors")) {
int count;
int count = 0;
/* Loop through the attributes of the colors element */
att_ptr = chld_node->properties;
@@ -1255,14 +1259,14 @@ void flam3_edit_print(FILE *f, xmlNodePtr editNode, int tabs, int formatting) {
int ti,strl;
xmlAttrPtr att_ptr=NULL,cur_att=NULL;
xmlNodePtr chld_ptr=NULL, cur_chld=NULL;
int edit_or_sheep = 0, indent_printed = 0;
int indent_printed = 0;
char *ai;
int tablim = argi("print_edit_depth",0);
char *att_str,*cont_str,*cpy_string;
if (tablim>0 && tabs>tablim)
return;
return;
/* If this node is an XML_ELEMENT_NODE, print it and it's attributes */
if (editNode->type==XML_ELEMENT_NODE) {
@@ -1278,13 +1282,8 @@ void flam3_edit_print(FILE *f, xmlNodePtr editNode, int tabs, int formatting) {
/* This can either be an edit node or a sheep node */
/* If it's an edit node, add one to the tab */
if (!xmlStrcmp(editNode->name, (const xmlChar *)"edit")) {
edit_or_sheep = 1;
tabs ++;
} else if (!xmlStrcmp(editNode->name, (const xmlChar *)"sheep"))
edit_or_sheep = 2;
else
edit_or_sheep = 0;
}
/* Print the attributes */
att_ptr = editNode->properties;