Warning device in a building (4,5)
I believe the answer is:
fire alarm
(Other definitions for fire alarm that I've seen before include "Safety device" , "Warning of conflagration" , "Warning to evacuate" , "It warns of smoke and flames" , "Warning device" .)