--- loadparts.cpp +++ loadparts.cpp @@ -245,7 +245,7 @@ while ('\\' == line[l-1]) { // concat next line(s) - int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1); + int bufsize = clamp(0U, (unsigned int)(sizeof(line)-l), (unsigned int)(sizeof(line)-1)); fgets(&line[l-2], bufsize, fp); if (feof((FILE*)fp)) break; l = strlen(line); --- main.cpp +++ main.cpp @@ -179,7 +179,7 @@ switch (c) { case 'h': // brief help - printf("csmash [-s] [ip-address]"); + puts("csmash [-s] [ip-address]"); return 0; case 's': // Server mode --- matrix +++ matrix @@ -42,7 +42,7 @@ /* __BEGIN__BEGIN__ */ //__NAMESPACE_BEGIN(ese); -#if (!defined __GNUG__) || (__GNUC__ == 3) +#if (!defined __GNUG__) || (__GNUC__ >= 3) template void swap(T& a, T& b) {