[FFmpeg-cvslog] rational-test: Add proper main() declaration to fix gcc warnings.
Diego Biurrun
git at videolan.org
Thu Jun 30 04:44:03 CEST 2011
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Jun 27 00:29:32 2011 +0200| [812f2376eecc19c40a95ade1f7a43b762106e0f7] | committer: Diego Biurrun
rational-test: Add proper main() declaration to fix gcc warnings.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=812f2376eecc19c40a95ade1f7a43b762106e0f7
---
libavutil/rational.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavutil/rational.c b/libavutil/rational.c
index b2b05cc..ac5111b 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
More information about the ffmpeg-cvslog
mailing list