From: Julian Seward Date: Thu, 21 Apr 2011 23:05:49 +0000 (+0000) Subject: Fix a couple of warnings when building the regtests. X-Git-Tag: svn/VALGRIND_3_7_0~531 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa0d25d3613e2bd51038099228dd998cf49f2a03;p=thirdparty%2Fvalgrind.git Fix a couple of warnings when building the regtests. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11706 --- diff --git a/drd/tests/annotate_ignore_rw.c b/drd/tests/annotate_ignore_rw.c index 75e9f98df1..c57117d991 100644 --- a/drd/tests/annotate_ignore_rw.c +++ b/drd/tests/annotate_ignore_rw.c @@ -53,7 +53,7 @@ int main(int argc, char** argv) sleep(1); /* Read s_c. */ - fprintf(stderr, "x" + s_c); + fprintf(stderr, "%s", "x" + s_c); pthread_join(tid, 0); diff --git a/none/tests/coolo_sigaction.cpp b/none/tests/coolo_sigaction.cpp index 02aacd268f..a1913ee13d 100644 --- a/none/tests/coolo_sigaction.cpp +++ b/none/tests/coolo_sigaction.cpp @@ -46,7 +46,7 @@ int main() FILE *p = popen("echo Hallo World", "r"); while (!feof(p)) { int n = fread(buffer, 200, 1, p); - write(2, buffer, n); + __attribute__((unused)) ssize_t nw = write(2, buffer, n); } fclose(p); for (i = 0; i < 1000000; i++) ;