diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-05-12 14:29:11 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-05-12 14:29:11 +0000 |
commit | cbace3709eb9da6b692d2d7156cc544b91ea517e (patch) | |
tree | a10cb9d21c5ba4aec104d0fff485cc6b19c30bc9 /compiler/msgidx.inc | |
parent | 57e0911ae50816f80af023d3c95d32cb6a3da109 (diff) | |
download | fpc-cbace3709eb9da6b692d2d7156cc544b91ea517e.tar.gz |
+ support for verifying whether a case statements handles all possibilities
(based on patch by Martok)
o enabled by default in ISO and Extended Pascal: compile-time error if not
the case in ISO mode, warning and run-time error in Extended Pascal mode
o warning enabled by default in all other modes for boolean, enumeration and
subrange integer types with ranges different from the default ones
(i.e., different from 0..255, -128..127, 0..65536, etc)
o warnings for all ordinal types can be enabled in all modes with
-CC
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@42047 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/msgidx.inc')
-rw-r--r-- | compiler/msgidx.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/msgidx.inc b/compiler/msgidx.inc index 39aed54681..8279757a37 100644 --- a/compiler/msgidx.inc +++ b/compiler/msgidx.inc @@ -698,6 +698,8 @@ const cg_e_function_not_support_by_selected_instruction_set=06056; cg_f_max_units_reached=06057; cg_n_no_inline=06058; + cg_e_case_incomplete=06059; + cg_w_case_incomplete=06060; asmr_d_start_reading=07000; asmr_d_finish_reading=07001; asmr_e_none_label_contain_at=07002; @@ -1108,9 +1110,9 @@ const option_info=11024; option_help_pages=11025; - MsgTxtSize = 82926; + MsgTxtSize = 83042; MsgIdxMax : array[1..20] of longint=( - 28,106,351,126,99,59,142,34,221,67, + 28,106,351,126,99,61,142,34,221,67, 62,20,30,1,1,1,1,1,1,1 ); |