I didn't catch your idea, could you provide more details.

This code block is used to avoid problem in this build: http://build.opencv.org/builders/precommit_macos/builds/7363/steps/compile/logs/stdio