Mercurial > libavcodec.hg
comparison eval.c @ 6167:0ae80d7e989a libavcodec
Fix warnings in test code:
eval.c:454: warning: return type defaults to 'int'
eval.c:464: warning: control reaches end of non-void function
author | diego |
---|---|
date | Tue, 22 Jan 2008 09:20:25 +0000 |
parents | bd5f4dc81fbe |
children | e378dca8784f |
comparison
equal
deleted
inserted
replaced
6166:3941c21ad59c | 6167:0ae80d7e989a |
---|---|
449 static const char *const_names[]={ | 449 static const char *const_names[]={ |
450 "PI", | 450 "PI", |
451 "E", | 451 "E", |
452 0 | 452 0 |
453 }; | 453 }; |
454 main(void){ | 454 int main(void){ |
455 int i; | 455 int i; |
456 printf("%f == 12.7\n", ff_eval("1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_values, const_names, NULL, NULL, NULL, NULL, NULL)); | 456 printf("%f == 12.7\n", ff_eval("1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_values, const_names, NULL, NULL, NULL, NULL, NULL)); |
457 printf("%f == 0.931322575\n", ff_eval("80G/80Gi", const_values, const_names, NULL, NULL, NULL, NULL, NULL)); | 457 printf("%f == 0.931322575\n", ff_eval("80G/80Gi", const_values, const_names, NULL, NULL, NULL, NULL, NULL)); |
458 | 458 |
459 for(i=0; i<1050; i++){ | 459 for(i=0; i<1050; i++){ |
460 START_TIMER | 460 START_TIMER |
461 ff_eval("1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_values, const_names, NULL, NULL, NULL, NULL, NULL); | 461 ff_eval("1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_values, const_names, NULL, NULL, NULL, NULL, NULL); |
462 STOP_TIMER("ff_eval") | 462 STOP_TIMER("ff_eval") |
463 } | 463 } |
464 return 0; | |
464 } | 465 } |
465 #endif | 466 #endif |