projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
707cc12
)
Fix to Wenum-compare
author
Jose Rubio
<joserubiovidales@gmail.com>
Thu, 10 Oct 2019 15:01:56 +0000
(17:01 +0200)
committer
Jose Rubio
<joserubiovidales@gmail.com>
Thu, 10 Oct 2019 15:01:56 +0000
(17:01 +0200)
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
patch
|
blob
|
history
diff --git
a/cde/programs/nsgmls/Mode.h
b/cde/programs/nsgmls/Mode.h
index 61f0d9e39149cd29a4e9e35a07c9726a08166f86..58613403c389643c5599d5d5d75c3fd57a2ffcea 100644
(file)
--- 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
}