evas/cserve2: Only declare timeval function if debug is
authorantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 22 Jun 2012 21:22:34 +0000 (21:22 +0000)
committerantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 22 Jun 2012 21:22:34 +0000 (21:22 +0000)
 enabled.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@72703 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/evas_cserve2_cache.c

index 63219c0..cc9ed93 100644 (file)
@@ -225,6 +225,7 @@ _entry_load_finish(Entry *e)
 #endif
 }
 
+#ifdef DEBUG_LOAD_TIME
 static int
 _timeval_sub(const struct timeval *tv2, const struct timeval *tv1)
 {
@@ -235,6 +236,7 @@ _timeval_sub(const struct timeval *tv2, const struct timeval *tv1)
 
     return t2 - t1;
 }
+#endif
 
 static void
 _image_opened_send(Client *client, File_Data *entry, unsigned int rid)