sample codes which cause compiler warning