aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib.c
diff options
authorChristopher Li <sparse@chrisli.org>2017-08-28 21:30:38 -0400
committerChristopher Li <sparse@chrisli.org>2017-08-28 21:30:38 -0400
commit958c11c35d98417eb6b948bffe2dffed14eb3320 (patch)
treee375d1d9411afd3a6ee3fe88a56eb73d0d7b53b1 /lib.c
parent9151ef493c72dde543cc14ee09da212be04e6f4b (diff)
parent4d963a28d371ce75f65a70aa29f14cec5f08d8ff (diff)
downloadsparse-dev-958c11c35d98417eb6b948bffe2dffed14eb3320.tar.gz
Merge remote-tracking branch 'luc/constexpr-v4' into master
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 73e9a2fe..4602cf85 100644
--- a/lib.c
+++ b/lib.c
@@ -223,6 +223,7 @@ int Waddress_space = 1;
int Wbitwise = 1;
int Wcast_to_as = 0;
int Wcast_truncate = 1;
+int Wconstexpr_not_const = 0;
int Wcontext = 1;
int Wdecl = 1;
int Wdeclarationafterstatement = -1;
@@ -515,6 +516,7 @@ static const struct warning {
{ "bitwise", &Wbitwise },
{ "cast-to-as", &Wcast_to_as },
{ "cast-truncate", &Wcast_truncate },
+ { "constexpr-not-const", &Wconstexpr_not_const},
{ "context", &Wcontext },
{ "decl", &Wdecl },
{ "declaration-after-statement", &Wdeclarationafterstatement },