--- a/rgbe.c
+++ b/rgbe.c
@@ -131,11 +131,9 @@
 int RGBE_ReadHeader(FILE *fp, uint32_t *width, uint32_t *height, rgbe_header_info *info)
 {
   char buf[128];
-  int found_format;
   float tempf;
   int i;
 
-  found_format = 0;
   if (info) {
     info->valid = 0;
     info->programtype[0] = 0;