Related Rule
Senegal
Practice Relating to Rule 37. Open Towns and Non-Defended Localities
Section C. Attacks on open towns and non-defended localities
Senegal’s Penal Code (1965), as amended in 2007, states that the following constitute war crimes:
b) other serious violations of the laws and customs applicable in international armed conflict, within the established framework of international law, namely, any of the following acts:
4. attacking or bombarding, by whatever means, towns, villages, dwellings or buildings which are undefended and which are not military objectives. 
Senegal, Penal Code, 1965, as amended in 2007, Article 431-3(b)(4).