rational-test: Add proper main() declaration to fix gcc warnings.
authorDiego Biurrun <diego@biurrun.de>
Sun, 26 Jun 2011 22:29:32 +0000 (00:29 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 29 Jun 2011 23:35:47 +0000 (01:35 +0200)
libavutil/rational.c

index b2b05cc4eed95371c2293ba4ae2687f96347f287..ac5111b896a5d97998dabdaccae3ba6f5897191f 100644 (file)
@@ -135,7 +135,8 @@ int av_find_nearest_q_idx(AVRational q, const AVRational* q_list)
 }
 
 #ifdef TEST
-main(){
+int main(void)
+{
     AVRational a,b;
     for(a.num=-2; a.num<=2; a.num++){
         for(a.den=-2; a.den<=2; a.den++){
@@ -151,5 +152,6 @@ main(){
             }
         }
     }
+    return 0;
 }
 #endif