[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] test-inttostr.c: include <string.h> for use of strcmp
From: |
Jim Meyering |
Subject: |
[PATCH 1/2] test-inttostr.c: include <string.h> for use of strcmp |
Date: |
Fri, 11 Jun 2010 09:21:22 +0200 |
I've pushed these two, too:
>From cc7a4e12a15c81018321fdf653c081cb42cf05b3 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 11 Jun 2010 09:08:47 +0200
Subject: [PATCH 1/2] test-inttostr.c: include <string.h> for use of strcmp
* tests/test-inttostr.c: Include <string.h> for strcmp declaration.
---
ChangeLog | 3 +++
tests/test-inttostr.c | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index cab8f6c..a8443e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-06-11 Jim Meyering <address@hidden>
+ test-inttostr.c: include <string.h> for use of strcmp
+ * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
+
test-linkat: avoid failed assertion on "other" architectures
* tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
lstat, mkdir. Patch by John Rigby, to fix FTBFS on armel, powerpc,
diff --git a/tests/test-inttostr.c b/tests/test-inttostr.c
index e8149e4..123aca4 100644
--- a/tests/test-inttostr.c
+++ b/tests/test-inttostr.c
@@ -23,6 +23,7 @@
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <assert.h>
#define STREQ(a, b) (strcmp (a, b) == 0)
--
1.7.1.501.g23b46
>From f2cde42348744d5c0914280135564e87eaa89f4d Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 11 Jun 2010 09:15:16 +0200
Subject: [PATCH 2/2] test-verify: avoid warning from gcc's
-Wmissing-declarations
* tests/test-verify.c (function): Declare to be static.
---
ChangeLog | 3 +++
tests/test-verify.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a8443e0..7b10dbf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-06-11 Jim Meyering <address@hidden>
+ test-verify: avoid warning from gcc's -Wmissing-declarations
+ * tests/test-verify.c (function): Declare to be static.
+
test-inttostr.c: include <string.h> for use of strcmp
* tests/test-inttostr.c: Include <string.h> for strcmp declaration.
diff --git a/tests/test-verify.c b/tests/test-verify.c
index 47eae2b..3f89ba9 100644
--- a/tests/test-verify.c
+++ b/tests/test-verify.c
@@ -42,7 +42,8 @@ enum
item = verify_true (1 == 1) * 0 + 17 /* should be ok */
};
-int function (int n)
+static int
+function (int n)
{
#if EXP_FAIL == 3
verify (n >= 0); /* should give ERROR: non-constant
expression */
--
1.7.1.501.g23b46
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 1/2] test-inttostr.c: include <string.h> for use of strcmp,
Jim Meyering <=