This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/13734] round() gives random numbers


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-19 04:26 -------
Use warnings:
pr13734.c:4: warning: return type defaults to `int'
pr13734.c: In function `main':
pr13734.c:5: warning: implicit declaration of function `round'
pr13734.c:5: warning: double format, different type arg (arg 2)
pr13734.c:5: warning: double format, different type arg (arg 3)
pr13734.c:6: warning: control reaches end of non-void function

See how round is implicitly declared, use -std=c99 or -std=gnu99 which turns on the c99 
functions in math.h.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13734


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]