LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.77k stars 1.14k forks source link

Fixes some compiler warnings #2807

Closed havardAasen closed 8 months ago

havardAasen commented 8 months ago

Compiler warning from emc_mods.c was originally fixed by Petter in #2215.

For the other warnings, I just removed the check, we could have checked for something else, but it don't seems necessary.

in nml_mod.c I changed from malloc() and strcpy() to strdup(), I also made sure the variable proc_name is initialized to 0. However, in master branch, this file was removed since it wasn't necessary or used.