Commit Graph

6 Commits

Author SHA1 Message Date
David Anderson ca80cac75a Win build: manage compiler warnings better:
VS lets you choose the compiler warning level, 0 to 4.
Higher is good because compiler warnings often indicate bugs.
However, some warnings are noise, and having a lot of them is bad
because they conceal the important ones.
As an example, a recent update to VS2010 causes it to spew warnings of the form
"function _strdup() is deprecated; use _strdup() instead.

So the new policy is:
- everything compiles with warning level 4
- in boinc_win.h we use #pragmas to suppress 3 specific warnings
  that occur a lot in our code, and are not bugs:
  - the _function names as described above
  - constant conditional expression (like while(1))
  - conversion from int to char

And the goal is to build everything with zero warnings
except from outside code like zip.
We're pretty close to that.

The project files for other VS versions should be modified
to also use level 4 everywhere.
2017-01-27 01:27:32 -08:00
Rom Walton 169b873fe6 example_app: reclassify the example_app as a console application on Windows.
This was a hold over from the Win9x days when a console application window could not be hidden by the processed that launched it.  Since we no longer need to support Win9x we can get rid of this hack.
2015-11-19 14:24:19 -05:00
Rom Walton 5e92b6c7d7 samples: Create a custom DLL for debugging DLL search path issues. Hook it up to the example app. 2014-01-15 12:01:00 -05:00
David Anderson 217ad5ae5d client: if app doesn't report fraction done, estimate fraction done in a way that converges to but never reaches 100%. 2014-01-15 01:03:48 -08:00
Rom Walton 9b85ac19ef samples: Add skeleton for zlib compression to sample app to test search path issues on Windows. It is not fully implemented. 2014-01-09 15:35:17 -05:00
Rom Walton bcf8ca2565 WINBUILD: Update build environment to use Visual Studio 2010. 2013-10-17 15:27:03 -04:00