Skip to content
Snippets Groups Projects
Commit 61ee9b25 authored by Chris Angelico's avatar Chris Angelico Committed by Henrik (Grubba) Grubbström
Browse files

Suppress warning from dumpmaster.pike due to non-enumerable case values

parent 33fcaaa2
No related branches found
No related tags found
No related merge requests found
...@@ -61,12 +61,9 @@ class Codec ...@@ -61,12 +61,9 @@ class Codec
string nameof(mixed x) string nameof(mixed x)
{ {
if(mixed tmp=search(all_constants(),x)) return tmp; if(mixed tmp=search(all_constants(),x)) return tmp;
switch(x) #define CONST(X) if (x == X) return #X
{ CONST(_static_modules._Stdio.Stat);
#define CONST(X) case X: return #X CONST(_static_modules.Builtin.__backend);
CONST(_static_modules._Stdio.Stat);
CONST(_static_modules.Builtin.__backend);
}
encoded+=({x}); encoded+=({x});
return UNDEFINED; return UNDEFINED;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment