The hazard warning lights should always be used when you stop on or near a roadway in an emergency.

The hazard warning lights warn other drivers that your vehicle is a traffic hazard and that they must take extreme caution when near it.

Depress the hazard warning flasher and all the turn signals will flash. The hazard warning indicator lights in the instrument cluster flash simultaneously.
NOTE
Flat TireMazda 6 Owners Manual: Turn Signals
Move the signal lever down (for a left turn) or up (for a right turn) to the stop position. The signal will self-cancel after the turn is completed.
If the indicator light continues to flash after a turn, manually return the lever to its original position.
The turn signal indicators in ...
Mazda 6 Owners Manual: Troubleshooting procedure
Basic flow of troubleshooting
DTC troubleshooting flow (on-board diagnostic)
Diagnostic trouble codes (DTCs) are important hints for repairing
malfunctions that are difficult to simulate.
Perform the specific DTC diagnostic inspection to quickly and accurately
diagnose the malfunction.
The ...