summaryrefslogtreecommitdiff
path: root/libavutil/rational.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-06-27 00:29:32 +0200
committerDiego Biurrun <diego@biurrun.de>2011-06-30 01:35:47 +0200
commit812f2376eecc19c40a95ade1f7a43b762106e0f7 (patch)
treece06fedd36e76623d8989f553dac40b37366825e /libavutil/rational.c
parentc562ba4c3d1037eb36cae5b7e93da1282ace9c53 (diff)
downloadffmpeg-812f2376eecc19c40a95ade1f7a43b762106e0f7.tar.gz
rational-test: Add proper main() declaration to fix gcc warnings.
Diffstat (limited to 'libavutil/rational.c')
-rw-r--r--libavutil/rational.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/rational.c b/libavutil/rational.c
index b2b05cc4ee..ac5111b896 100644
--- a/libavutil/rational.c
+++ b/libavutil/rational.c
@@ -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