summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-06-11 15:03:31 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-06-11 15:03:31 +0000
commita558a51698b9b4974ec29fb7ae105bfe41084414 (patch)
tree0f02e16512d17bf3b5aa9a0c37d897de45962c4d
parent1ce54cfccd0f823a460253bc48818de61eb76d09 (diff)
Fix some compiler warnings
-rw-r--r--extra/locale/gen_wc8bit.c4
-rw-r--r--test/test-skeleton.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/extra/locale/gen_wc8bit.c b/extra/locale/gen_wc8bit.c
index 7cefb53be..3cdcca801 100644
--- a/extra/locale/gen_wc8bit.c
+++ b/extra/locale/gen_wc8bit.c
@@ -464,7 +464,7 @@ int main(int argc, char **argv)
#if 1
wrow[i & (C2WC_ROW_LEN-1)] = csd[numsets].c2w[i];
if ((i & (C2WC_ROW_LEN-1)) == (C2WC_ROW_LEN-1)) {
- p = (char *) c2wc_tbl;
+ p = (unsigned char *) c2wc_tbl;
for (j=0 ; j < n_c2wc_rows ; j++) {
if (!memcmp(p, (char *) wrow, 2*C2WC_ROW_LEN)) {
break;
@@ -615,7 +615,7 @@ int main(int argc, char **argv)
fprintf(out, "\nstatic const unsigned short __LOCALE_DATA_Cc2wc_data[%d] = {\n",
n_c2wc_rows * C2WC_ROW_LEN);
- p = (char *) c2wc_tbl;
+ p = (unsigned char *) c2wc_tbl;
for (j=0 ; j < n_c2wc_rows ; j++) {
fprintf(out, "\t");
for (i=0 ; i < C2WC_ROW_LEN ; i++) {
diff --git a/test/test-skeleton.c b/test/test-skeleton.c
index 22fdd8f98..adfc8b75b 100644
--- a/test/test-skeleton.c
+++ b/test/test-skeleton.c
@@ -135,7 +135,7 @@ static void
__attribute__ ((noreturn))
timeout_handler (int sig __attribute__ ((unused)))
{
- int killed;
+ int killed = 0;
int status;
/* Send signal. */