fix some Clang warnings; from Steffen Moeller

This commit is contained in:
David Anderson 2013-05-20 12:58:52 -07:00
parent 6968dc5a72
commit f1c7b6a97d
4 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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

View File

@ -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);
}

View File

@ -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);
}