diff --git a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C
index 1737e1de0ae4e9d42f01560446cf70b71e472aa9..ef4be71636697276843d5e0db12ae3a3c01df42f 100644
--- a/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C
+++ b/src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C
@@ -52,7 +52,6 @@ void Foam::nearWallFields::calcAddressing()
     }
 
     // Global indexing
-    globalIndex globalCells(mesh.nCells());
     globalIndex globalWalls(nPatchFaces);
 
     if (debug)