#665 dune/common/misc.hh broken in GCC 4.4
Metadata
Property | Value |
---|---|
Reported by | Bård Skaflestad (bard.skaflestad@sintef.no) |
Reported at | Nov 20, 2009 13:51 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Linux 64bit |
Last edited by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Last edited at | Nov 20, 2009 14:12 |
Closed by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Closed at | Nov 20, 2009 14:12 |
Closed in version | Unknown |
Resolution | Fixed |
Comment | The patch seems reasonable, applied in revision 5717 |
Description
The file <dune/common/misc.hh> defines a function, genFilename(), whose definition relies on sprintf().
However, misc.hh fails to #include (or <stdio.h>). In GCC 4.4 (with somewhat strict settings, -Wall -Wextra) this leads to a build error in dune-grid.
The attached patch fixes this build error on my system. The patch also prefixes sprintf() with 'std::'.