OpenXcom Forum

Contributions => Programming => Topic started by: ajschult on June 17, 2014, 04:25:51 pm

Title: gcc compiler warnings patch
Post by: ajschult on June 17, 2014, 04:25:51 pm
I'm attempting to build a package on Fedora 20.  It adds the compiler flag -Wall, so (along with -Werror from configure) I get a lot of build failures.  I've attached a patch to fix various problems including

unused variables or methods (-Wunused)
uninitialized variables (-Wuninitialized)
signed/unsigned comparisons (-Wsign-compare)
order of initiliazers (-Wreorder)