It usually means auto-attack is enabled but your target is out of range — you are swinging at empty air. Close the distance and the button settles down. Custom user interfaces can change how the warning appears, so the exact look depends on whether you run the default UI.