Commit 5ce05278 authored by rswindell's avatar rswindell
Browse files

Resolve GCC warning: enumeration value 'XEDIT_SOFT_CR_UNDEFINED' not handled

in switch
parent 9cd49912
......@@ -1670,7 +1670,7 @@ void xedit_cfg()
,cfg.xedit[i]->misc&QUICKBBS ? "QuickBBS MSGINF/MSGTMP":"WWIV EDITOR.INF/RESULT.ED");
sprintf(opt[k++],"%-32.32s%s","Expand Line Feeds to CRLF"
,cfg.xedit[i]->misc&EXPANDLF ? "Yes":"No");
const char* p = "Unspecified";
const char* p;
switch(cfg.xedit[i]->soft_cr) {
case XEDIT_SOFT_CR_EXPAND:
p = "Convert to CRLF";
......@@ -1681,6 +1681,10 @@ void xedit_cfg()
case XEDIT_SOFT_CR_RETAIN:
p = "Retain";
break;
default:
case XEDIT_SOFT_CR_UNDEFINED:
p = "Unspecified";
break;
}
sprintf(opt[k++],"%-32.32s%s","Handle Soft Carriage Returns", p);
sprintf(opt[k++],"%-32.32s%s","Strip FidoNet Kludge Lines"
......
......@@ -145,6 +145,9 @@ int sbbs_t::process_edited_text(char* buf, FILE* stream, long mode, unsigned* li
continue;
case XEDIT_SOFT_CR_STRIP:
continue;
case XEDIT_SOFT_CR_RETAIN:
case XEDIT_SOFT_CR_UNDEFINED:
break;
}
}
/* Expand LF to CRLF? */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment