- Timestamp:
- Jul 22, 2016 3:20:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/uniread.cpp
r57944 r62453 60 60 * @param ... Format arguments. 61 61 */ 62 static voidParseError(const char *pszFormat, ...)62 static DECL_NO_RETURN(void) ParseError(const char *pszFormat, ...) 63 63 { 64 64 va_list va; … … 198 198 { 199 199 ParseError("Bad Decomposition Type/Mappings\n"); 200 return *ppszType;200 /* not reached: return *ppszType; */ 201 201 } 202 202 *psz++ = '\0'; … … 256 256 { 257 257 ParseError("failed converting '%s' to a number!\n", psz); 258 return ~(RTUNICP)0;258 /* not reached: return ~(RTUNICP)0;*/ 259 259 } 260 260 } … … 262 262 { 263 263 ParseError("failed converting '%s' to a number!\n", psz); 264 return ~(RTUNICP)0;264 /* not reached: return ~(RTUNICP)0; */ 265 265 } 266 266 } … … 299 299 { 300 300 ParseError("Too many mappings.\n"); 301 break;301 /* not reached: break; */ 302 302 } 303 303 if (i >= cAlloc) … … 593 593 { 594 594 ParseError("U+05X is out of range\n", CodePoint); 595 continue;595 /* not reached: continue;*/ 596 596 } 597 597 … … 602 602 { 603 603 ParseError("i=%d CodePoint=%u\n", i, CodePoint); 604 CloseFile(pFile);605 return 1; 604 /* not reached: CloseFile(pFile); 605 return 1; */ 606 606 } 607 607 … … 675 675 { 676 676 if (!**ppszNextField) 677 {678 677 ParseError("Missing Y/N/M field\n"); 679 return 0; 680 } 681 char *psz = NextField(ppszNextField); 682 if (!strcmp(psz, "N")) 683 return 0; 684 if (!strcmp(psz, "Y")) 685 return 1; 686 if (!strcmp(psz, "M")) 687 return 2; 688 ParseError("Unexpected Y/N/M value: '%s'\n", psz); 689 return 0; 678 else 679 { 680 char *psz = NextField(ppszNextField); 681 if (!strcmp(psz, "N")) 682 return 0; 683 if (!strcmp(psz, "Y")) 684 return 1; 685 if (!strcmp(psz, "M")) 686 return 2; 687 ParseError("Unexpected Y/N/M value: '%s'\n", psz); 688 } 689 /* not reached: return 0; */ 690 690 } 691 691 … … 721 721 { 722 722 ParseError("U+%06X is out of the g_aCPInfo range.\n", StartCP); 723 return;723 /* not reached: return; */ 724 724 } 725 725 struct CPINFO *pCPInfo = &g_aCPInfo[StartCP]; … … 792 792 { 793 793 ParseError("Unknown property '%s'\n", pszProperty); 794 return;794 /* not reached: return; */ 795 795 } 796 796 … … 834 834 { 835 835 ParseError("no property field.\n"); 836 continue;836 /* not reached: continue; */ 837 837 } 838 838
Note:
See TracChangeset
for help on using the changeset viewer.