Use constant expression for the model_id

Fixes gcc 6.5.0
This commit is contained in:
Rodrigo Arias 2023-02-15 19:57:59 +01:00 committed by Rodrigo Arias Mallo
parent 451d4be386
commit 819f767dbd
4 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#include "kernel_priv.h"
static const char model_name[] = "kernel";
static const int model_id = 'K';
enum { model_id = 'K' };
struct model_spec model_kernel = {
.name = model_name,

View File

@ -1,7 +1,7 @@
#include "nanos6_priv.h"
static const char model_name[] = "nanos6";
static const int model_id = '6';
enum { model_id = '6' };
struct model_spec model_nanos6 = {
.name = model_name,

View File

@ -1,7 +1,7 @@
#include "nodes_priv.h"
static const char model_name[] = "nodes";
static const int model_id = 'D';
enum { model_id = 'D' };
struct model_spec model_nodes = {
.name = model_name,

View File

@ -1,7 +1,7 @@
#include "nosv_priv.h"
static const char model_name[] = "nosv";
static const int model_id = 'V';
enum { model_id = 'V' };
struct model_spec model_nosv = {
.name = model_name,