FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

[Seqan-dev] GCC unused-result warnings

<-- thread -->
<-- date -->
  • From: John Reid <j.reid@mail.cryst.bbk.ac.uk>
  • To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Date: Fri, 13 May 2011 18:09:17 +0100
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: [Seqan-dev] GCC unused-result warnings

Hi,

I get unused-result warnings with gcc 4.4.3 in the tempFileName() function. Could you apply the attached patch to remove them? Then I'll be able to concentrate on my own warnings....

Thanks,
John.
Index: core/include/seqan/basic/basic_testing.h
===================================================================
--- core/include/seqan/basic/basic_testing.h	(revision 9403)
+++ core/include/seqan/basic/basic_testing.h	(working copy)
@@ -533,7 +533,7 @@
     // There is no mkstemp in MinGW but it does not complain about tmpnam.
     tmpnam(fileNameBuffer);
 #else  // ifdef PLATFORM_WINDOWS_MINGW
-    mkstemp(fileNameBuffer);
+    int _tmp = mkstemp(fileNameBuffer);
     unlink(fileNameBuffer);
 #endif  // #ifdef PLATFORM_WINDOWS_MINGW
     StaticData::tempFileNames().push_back(fileNameBuffer);
<-- thread -->
<-- date -->
  • Follow-Ups:
    • Re: [Seqan-dev] GCC unused-result warnings
      • From: Manuel Holtgrewe <manuel.holtgrewe@fu-berlin.de>
  • seqan-dev - May 2011 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the seqan-dev mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal