Skip to content

Commit be32194

Browse files
committed
Fix -Wswitch warning in dsql/make
1 parent 6709800 commit be32194

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/dsql/make.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ ValueExprNode* MAKE_constant(const char* str, dsql_constant_type numeric_flag, S
282282
case CONSTANT_TIMESTAMP:
283283
literal->litDesc.dsc_dtype = tz ? dtype_timestamp_tz : dtype_timestamp;
284284
break;
285+
286+
default:
287+
fb_assert(false);
288+
return NULL;
285289
}
286290

287291
literal->litDesc.dsc_sub_type = 0;
@@ -312,6 +316,10 @@ ValueExprNode* MAKE_constant(const char* str, dsql_constant_type numeric_flag, S
312316
else
313317
*(ISC_TIMESTAMP*) literal->litDesc.dsc_address = ts.utc_timestamp;
314318
break;
319+
320+
default:
321+
fb_assert(false);
322+
return NULL;
315323
}
316324

317325
break;

0 commit comments

Comments
 (0)