Tsunami warnings have been issued after a magnitude 7.8 earthquake struck Mindanao in the Philippines.