From fa1039760e8c1a0c7a2a722160bd3d71a4736e61 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 29 Sep 2022 19:14:42 +0100 Subject: patch 9.0.0623: error for modifying a const is not detected at compile time Problem: Error for modifying a const is not detected at compile time. Solution: Add TTFLAG_CONST and check for it in add() and extend(). --- src/errors.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/errors.h') diff --git a/src/errors.h b/src/errors.h index 7f23cc855..868ed5721 100644 --- a/src/errors.h +++ b/src/errors.h @@ -3332,4 +3332,6 @@ EXTERN char e_cannot_use_length_endcol_and_endlnum_with_text[] #ifdef FEAT_EVAL EXTERN char e_loop_nesting_too_deep[] INIT(= N_("E1306: Loop nesting too deep")); +EXTERN char e_argument_nr_trying_to_modify_const_str[] + INIT(= N_("E1307: Argument %d: Trying to modify a const %s")); #endif -- cgit v1.2.1