The GPWS system should not give you a "Terrain" (GPWS Mode 2) warning unless you are closing on terrain at an excessive rate which you certainly shouldn't be after takeoff and you shouldn't have an excessive closure rate on landing. You really wouldn't want to silence the warning unless the system had failed.