]> git.lyx.org Git - features.git/commitdiff
Omit runtime messages if compiled with clang using flag '-fsanitize'.
authorKornel Benko <kornel@lyx.org>
Fri, 21 Jan 2022 10:02:09 +0000 (11:02 +0100)
committerKornel Benko <kornel@lyx.org>
Fri, 21 Jan 2022 10:02:09 +0000 (11:02 +0100)
Setting sufficiently high value allows to use
ColorCode enums for new up to 32000 branch insets.
Previous setting printed messages if using more than 25 new branch insets.
"'ColorCode' ... src/Color.cpp:435:10: runtime error:
load of value 128, which is not a valid value for type"

src/ColorCode.h

index f2f4521f17548dadf7f4dcfa6e87ef0de751a0ca..e1a6b0aaa1292f5de860826263115c8012f40494 100644 (file)
@@ -238,7 +238,8 @@ enum ColorCode {
        /// Color for regexp frame
        Color_regexpframe,
        /// For ignoring updates of a color
-       Color_ignore
+       Color_ignore,
+       Color_max = 500
 };