This version of Unity is unsupported.

ShaderInfo.hasWarnings

public bool hasWarnings;

Description

Indicates whether the shader has compilation warnings (Read Only).