If you get a peculiar smell from a switch or socket, please stop using it. Call an electrician to investigate it. I have regularly been called to houses where a switch has burnt out.
On investigation the customer had noticed a peculiar smell in the previous days.
If a switch is warm to touch it is a problem. Switches and sockets should perform normally without overheating.