From 20ba7550cdf2832f155809dffd3761ef05d317cf Mon Sep 17 00:00:00 2001 From: Jose Rubio Date: Thu, 10 Oct 2019 17:01:56 +0200 Subject: [PATCH] Fix to Wenum-compare It seems the purpose is to define a constant as an anonymous enum. that behaviour triggers the enum compare. Let's make it a constant. --- cde/programs/nsgmls/Mode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/nsgmls/Mode.h b/cde/programs/nsgmls/Mode.h index 61f0d9e39..58613403c 100644 --- a/cde/programs/nsgmls/Mode.h +++ b/cde/programs/nsgmls/Mode.h @@ -83,7 +83,7 @@ enum Mode { const int nModes = mconnetMode + 1; -enum { minShortrefMode = econMode }; +const int minShortrefMode = econMode; #ifdef SP_NAMESPACE }