[Dune] [#665] dune/common/misc.hh broken in GCC 4.4 (Attachment added)

Dune dune at dune-project.org
Fri Nov 20 14:51:17 CET 2009


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Bård Skaflestad (bska) 

Attached to Project - Dune
Summary - dune/common/misc.hh broken in GCC 4.4
Task Type - Bug Report
Category - Common
Status - Unconfirmed
Assigned To - 
Operating System - Linux 64bit
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - The file <dune/common/misc.hh> defines a function, genFilename(), whose definition relies on sprintf().

However, misc.hh fails to #include <cstdio> (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::'.

One or more files have been attached.

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=665

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list