A 7.4 magnitude quake off Indonesia triggered a tsunami warning for Indonesia, the Philippines and Malaysia.