add copyright notice
suppress compile warning

Suppress "maybe used undefined" compile warning.