1. 24 Jun, 2019 1 commit
    • win32: support upgrading warnings to errors (/WX) · cc9e47c9
      For MSVC, support warnings as errors by providing the /WX compiler
      flags.  (/WX is the moral equivalent of -Werror.)
      
      Disable warnings as errors ass part of xdiff, since it contains
      warnings.  But as a component of git itself, we want to avoid skew and
      keep our implementation as similar as possible to theirs.  We'll work
      with upstream to fix these issues, but in the meantime, simply let those
      continue to warn.
      Edward Thomson committed
  2. 10 Jan, 2019 1 commit
    • Make ENABLE_WERROR actually work · 6af6170b
      This change explicitly adds -Werror to the CFLAGS.
      
      Due to the way that the ADD_C_FLAG_IF_SUPPORTED() macro was mangling the
      flag name to convert it into a define name, any warning that had a dash
      in its name was not being correctly enabled. Additionally, any flag that
      is enabled implicitly by the compiler (like -Wunused-result and
      -Wdeprecated-declarations) would not cause an error unless they were
      explicitly enabled with the ENABLE_WARNINGS() macro.
      lhchavez committed
  3. 05 Feb, 2018 1 commit