Skip to content
Snippets Groups Projects
Commit e31ae8e4 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Fix for gcc warning.

* gcc 6.4 does not realize posix_memalign initializes ptr on some
  Linux systems.
parent 508ee6bc
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -178,7 +178,7 @@ initAFiledataFileWriteAtReblock(struct fileMPIFWAR *of, const char *filename, co
of->name = Malloc(nameSize);
memcpy(of->name, filename, nameSize);
{
void *ptr;
void *ptr = NULL;
int err = posix_memalign(&ptr, bufBlockAlign, bufSize);
if (!err)
of->blockBuf = ptr;
......
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