johncarlson21 / SV04-Marlin-2.1.x

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. | Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
http://marlinfw.org
GNU General Public License v3.0
20 stars 7 forks source link

Force compiler warnings to fail the build for safety #22

Open senbrow opened 1 year ago

senbrow commented 1 year ago

Description

This change adds the -Werror flag to turn all compiler warnings into errors, which will fail the build.

Benefits

This will help prevent code with warnings from accidentally being pushed to the repository.

This is important for physical safety since compilers may emit code that does virtually anything in the presence of undefined behavior.

Related Issues

https://github.com/johncarlson21/SV04-Marlin-2.1.x/pull/21