wrapper: fix Win build (remove --version option)

This commit is contained in:
David Anderson 2016-09-09 15:41:23 -07:00
parent 2a1a55780a
commit 3bb3235a83
2 changed files with 6 additions and 1 deletions

View File

@ -273,8 +273,9 @@ int CScreensaver::terminate_v6_screensaver(GFXAPP_ID& graphics_application) {
// Terminate the project (science) graphics application
// TODO: get rid of 2nd arg
//
int CScreensaver::terminate_screensaver(GFXAPP_ID& graphics_application, RESULT *worker_app) {
int CScreensaver::terminate_screensaver(GFXAPP_ID& graphics_application, RESULT *) {
int retval = 0;
if (graphics_application) {

View File

@ -68,7 +68,9 @@
#endif
#include "version.h"
#ifndef _WIN32
#include "svn_version.h"
#endif
#include "boinc_api.h"
#include "app_ipc.h"
#include "graphics2.h"
@ -1154,9 +1156,11 @@ int main(int argc, char** argv) {
gpu_device_num = atoi(argv[++j]);
} else if (!strcmp(argv[j], "--trickle")) {
trickle_period = atof(argv[++j]);
#ifndef _WIN32
} else if (!strcmp(argv[j], "--version") || !strcmp(argv[j], "-v")) {
fprintf(stderr, "%s\n", SVN_VERSION);
boinc_finish(0);
#endif
}
}