mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Fix a couple of warnings when building the regtests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11706
This commit is contained in:
parent
b1a118436a
commit
aa0d25d361
@ -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);
|
||||
|
||||
|
||||
@ -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++) ;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user