# HG changeset patch # User diego # Date 1200993625 0 # Node ID 0ae80d7e989a0b86a027d0b86ba51e8962ec36b1 # Parent 3941c21ad59cc11099d67b2fa116512403631dc9 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 diff -r 3941c21ad59c -r 0ae80d7e989a eval.c --- a/eval.c Mon Jan 21 00:29:22 2008 +0000 +++ b/eval.c Tue Jan 22 09:20:25 2008 +0000 @@ -451,7 +451,7 @@ "E", 0 }; -main(void){ +int main(void){ int i; 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)); printf("%f == 0.931322575\n", ff_eval("80G/80Gi", const_values, const_names, NULL, NULL, NULL, NULL, NULL)); @@ -461,5 +461,6 @@ 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); STOP_TIMER("ff_eval") } + return 0; } #endif