diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-06-27 00:29:32 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-06-30 01:35:47 +0200 |
commit | 812f2376eecc19c40a95ade1f7a43b762106e0f7 (patch) | |
tree | ce06fedd36e76623d8989f553dac40b37366825e | |
parent | c562ba4c3d1037eb36cae5b7e93da1282ace9c53 (diff) | |
download | ffmpeg-812f2376eecc19c40a95ade1f7a43b762106e0f7.tar.gz |
rational-test: Add proper main() declaration to fix gcc warnings.
-rw-r--r-- | libavutil/rational.c | 4 |
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 |