From 5ae68f82b26adefbcc426a6db76aaef97eb278f6 Mon Sep 17 00:00:00 2001 From: Christian Bell Date: Tue, 10 Jul 2007 13:54:34 +0000 Subject: [PATCH] fix gcc 3.x compilation warnings This commit was SVN r15327. --- ompi/mca/mtl/psm/mtl_psm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ompi/mca/mtl/psm/mtl_psm.c b/ompi/mca/mtl/psm/mtl_psm.c index 05c3d2d23b..69b86474c1 100644 --- a/ompi/mca/mtl/psm/mtl_psm.c +++ b/ompi/mca/mtl/psm/mtl_psm.c @@ -85,14 +85,14 @@ int ompi_mtl_psm_module_init() { psm_mq_t mq; psm_epid_t epid; /* unique lid+port identifier */ psm_uuid_t unique_job_key; - uint64_t *uu = (uint64_t *) unique_job_key; + unsigned long long *uu = (unsigned long long *) unique_job_key; char *generated_key; generated_key = getenv("OMPI_MCA_orte_precondition_transports"); memset(uu, 0, sizeof(psm_uuid_t)); if (!generated_key || (strlen(generated_key) != 33) || - sscanf(generated_key, "%016x-%016x", &uu[0], &uu[1]) != 2) + sscanf(generated_key, "%016llx-%016llx", &uu[0], &uu[1]) != 2) { opal_output(0, "Error obtaining unique transport key from ORTE " "(orte_precondition_transpots %s the environment)\n", @@ -255,7 +255,6 @@ ompi_mtl_psm_add_procs(struct mca_mtl_base_module_t *mtl, timeout_in_secs * 1e9); if (err) { char *errstr = (char *) ompi_mtl_psm_connect_error_msg(err); - char *opalerr = NULL; if (errstr == NULL) { opal_output(0, "PSM returned unhandled/unknown connect error: %s\n", psm_error_get_string(err));