remove warnings from edje binaries.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 28 Feb 2010 16:14:50 +0000 (16:14 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 28 Feb 2010 16:14:50 +0000 (16:14 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@46647 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc_parse.c
src/bin/edje_decc.c

index 9fef541..c759e55 100644 (file)
@@ -806,6 +806,7 @@ is_num(int n)
 {
    char *str;
    char *end;
+   long val;
 
    str = eina_list_nth(params, n);
    if (!str)
@@ -816,7 +817,7 @@ is_num(int n)
      }
    if (str[0] == 0) return 0;
    end = str;
-   strtol(str, &end, 0);
+   val = strtol(str, &end, 0);
    if ((end != str) && (end[0] == 0)) return 1;
    return 0;
 }
index 29aeecf..7a1f7a8 100644 (file)
@@ -14,6 +14,7 @@
 #include <locale.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <errno.h>
 
 
 #include <Ecore_File.h>
@@ -305,7 +306,8 @@ output(void)
                       exit (-1);
                    }
                  f = fopen(out, "wb");
-                 fwrite(font, fontsize, 1, f);
+                 if (fwrite(font, fontsize, 1, f) != 1)
+                   ERR("Could not write font: %s", strerror(errno));
                  fclose(f);
                  free(font);
               }