cpu_ref: Use -Wno-error to fix build

Change-Id: I16358766ce4d2258ebcd523fbd14ddf30c4b4056