mirror of https://github.com/BOINC/boinc.git
fix some Clang warnings; from Steffen Moeller
This commit is contained in:
parent
6968dc5a72
commit
f1c7b6a97d
|
@ -1645,7 +1645,7 @@ void CMainDocument::KillGraphicsApp(HANDLE pid) {
|
|||
void CMainDocument::KillGraphicsApp(int pid) {
|
||||
char* argv[6];
|
||||
char currentDir[1024];
|
||||
char thePIDbuf[10];
|
||||
char thePIDbuf[20];
|
||||
int id, iRetVal;
|
||||
|
||||
|
||||
|
|
|
@ -147,13 +147,13 @@ libboinc_la_SOURCES = $(generic_sources) $(mac_sources)
|
|||
libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
|
||||
libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
|
||||
libboinc_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static -version-number $(LIBBOINC_VERSION)
|
||||
libboinc_la_LIBADD =
|
||||
libboinc_la_LIBADD = -lm -lstdc++
|
||||
|
||||
libboinc_crypt_la_SOURCES = crypt.cpp
|
||||
libboinc_crypt_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CFLAGS)
|
||||
libboinc_crypt_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CXXFLAGS)
|
||||
libboinc_crypt_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static -version-number $(LIBBOINC_VERSION)
|
||||
libboinc_crypt_la_LIBADD =
|
||||
libboinc_crypt_la_LIBADD = -lm -lstdc++
|
||||
|
||||
|
||||
if ENABLE_FCGI
|
||||
|
|
|
@ -43,14 +43,14 @@ int main(int argc, char** argv) {
|
|||
int retval;
|
||||
|
||||
if ( (argc == 1) || !strcmp(argv[1], "-h") || !strcmp(argv[1],"--help") || (argc != 4) ) {
|
||||
fprintf(stderr, usage);
|
||||
fprintf(stderr, "%s", usage);
|
||||
exit(1);
|
||||
}
|
||||
src_dir = argv[1];
|
||||
dst_dir = argv[2];
|
||||
fanout = atoi(argv[3]);
|
||||
if (!fanout) {
|
||||
fprintf(stderr, usage);
|
||||
fprintf(stderr, "%s", usage);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ int main(int argc, char** argv) {
|
|||
int retval;
|
||||
|
||||
if ( (argc == 1) || !strcmp(argv[1], "-h") || !strcmp(argv[1],"--help") || (argc != 2) ) {
|
||||
fprintf(stderr, usage);
|
||||
fprintf(stderr, "%s", usage);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue