Skip to content
Snippets Groups Projects
Commit d580e96f authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Annotate unproblematic warning from older compiler.

parent e244d873
No related branches found
No related tags found
2 merge requests!91Add alternative code path for huge buffers.,!89Miscellaneous fixes and CDI-PIO improvements
......@@ -630,6 +630,11 @@ printDot(int ndotout, int *nfact, int *ncout)
return ndotout;
}
/* gcc 4.9 makes (valid) assumptions that nvdatetime will not overflow */
#if defined __GNUC__ || (__GNUC__ == 4 && __GNUC_MINOR__ == 9)
#pragma GCC diagnostic push
#pragma GCC diagnostic warning "-Wstrict-overflow"
#endif
void
printTimesteps(int streamID, int taxisID, int verbose)
{
......@@ -701,3 +706,6 @@ printTimesteps(int streamID, int taxisID, int verbose)
}
}
}
#if defined __GNUC__ || (__GNUC__ == 4 && __GNUC_MINOR__ == 9)
#pragma GCC diagnostic pop
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment