Menu

#34 [patch] arrays with non-integer-constant-expression size

v1.0 (example)
open
nobody
patch (1)
5
2014-01-25
2014-01-25
No

ISO C requires the size of an array to be an integer constant expression, and gcc warns that it isn't.

The scale factors cancel out:
kHz * ms = 1000 Hz * (1/1000) s = Hz * s

Here is the patch I applied to the Debian package.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB