diff mbox

[hsa] Silence a warning in emit_directive_variable

Message ID 20151012174956.GF14248@virgil.suse.cz
State New
Headers show

Commit Message

Martin Jambor Oct. 12, 2015, 5:49 p.m. UTC
Hi,

in the previous commit I have introduced a warning, this one silences
it.

Thanks,

Martin


2015-10-12  Martin Jambor  <mjambor@suse.cz>

	* hsa-brig.c (emit_directive_variable): Add typecast.
diff mbox

Patch

diff --git a/gcc/hsa-brig.c b/gcc/hsa-brig.c
index 49d9e1d..e9712b5 100644
--- a/gcc/hsa-brig.c
+++ b/gcc/hsa-brig.c
@@ -574,7 +574,8 @@  emit_directive_variable (struct hsa_symbol *symbol)
   dirvar.segment = symbol->segment;
   /* TODO: Once we are able to access global variables, we must copy their
      alignment.  */
-  dirvar.align = MAX (hsa_natural_alignment (dirvar.type), BRIG_ALIGNMENT_4);
+  dirvar.align = MAX (hsa_natural_alignment (dirvar.type),
+		      (BrigAlignment8_t) BRIG_ALIGNMENT_4);
   dirvar.linkage = symbol->linkage;
   dirvar.dim.lo = (uint32_t) symbol->dim;
   dirvar.dim.hi = (uint32_t) ((unsigned long long) symbol->dim >> 32);