diff --git a/src/options.c b/src/options.c index 881e9400..189e9024 100644 --- a/src/options.c +++ b/src/options.c @@ -62,8 +62,8 @@ s_warnings[] = { {W_ARRAY_INDIRECTION,"array-indirection"}, {W_OUT_OF_BOUNDS, "out-of-bounds"}, {W_ASSIGNMENT_OF_ARRAY_PARAMETER, "array-parameter-assignment"}, - {W_CONDITIONAL_IS_CONSTANT,"conditional-constant"} - + {W_CONDITIONAL_IS_CONSTANT,"conditional-constant"}, + {W_OWNERSHIP_NULL_OBJECT, "too-deep"} }; static_assert((sizeof(s_warnings) / sizeof(s_warnings[0])) < 64); diff --git a/src/options.h b/src/options.h index b5d3eee8..fdcc1934 100644 --- a/src/options.h +++ b/src/options.h @@ -41,6 +41,7 @@ enum diagnostic_id { /*ownership type system errors*/ W_OWNERSHIP_MISSING_OWNER_QUALIFIER, + W_OWNERSHIP_NULL_OBJECT, W_OWNERSHIP_NOT_OWNER, W_OWNERSHIP_USING_TEMPORARY_OWNER, W_OWNERSHIP_MOVE_ASSIGNMENT_OF_NON_OWNER,