From 8a17f7d9b2d6fb4ea3f7accf0f8e2dac5a4b633d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Domokos=20S=C3=A1rm=C3=A1ny?= <domokos.sarmany@ecmwf.int>
Date: Tue, 28 Apr 2020 22:00:34 +0100
Subject: [PATCH] Fix gcc 7 compilation error in attributes

---
 attributes/ecmwf-yaml.h        | 2 +-
 attributes/maestro-core-yaml.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/attributes/ecmwf-yaml.h b/attributes/ecmwf-yaml.h
index 08c42fe0..ec8e45df 100644
--- a/attributes/ecmwf-yaml.h
+++ b/attributes/ecmwf-yaml.h
@@ -155,4 +155,4 @@ unsigned char ecmwf_yaml[] = {
   0x74, 0x65, 0x6f, 0x72, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c,
   0x20, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x0a
 };
-const unsigned int ecmwf_yaml_len = 1859;
+#define ecmwf_yaml_len ((unsigned int)1859)
diff --git a/attributes/maestro-core-yaml.h b/attributes/maestro-core-yaml.h
index fbd848bf..dd49957d 100644
--- a/attributes/maestro-core-yaml.h
+++ b/attributes/maestro-core-yaml.h
@@ -412,4 +412,4 @@ unsigned char maestro_core_yaml[] = {
   0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x79, 0x61, 0x6d, 0x6c, 0x29, 0x0a,
   0x0a
 };
-const unsigned int maestro_core_yaml_len = 4933;
+#define maestro_core_yaml_len ((unsigned int)4933)
-- 
GitLab