Skip to content

Commit 7b9b141

Browse files
committed
Mark internal_error*() as NORET
This helps avoid false positive warnings about unreachable places in the code.
1 parent 06e7db7 commit 7b9b141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data.table.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ uint64_t dtwiddle(double x);
143143
SEXP forder(SEXP DT, SEXP by, SEXP retGrpArg, SEXP retStatsArg, SEXP sortGroupsArg, SEXP ascArg, SEXP naArg);
144144
SEXP forderReuseSorting(SEXP DT, SEXP by, SEXP retGrpArg, SEXP retStatsArg, SEXP sortGroupsArg, SEXP ascArg, SEXP naArg, SEXP reuseSortingArg); // reuseSorting wrapper to forder
145145
int getNumericRounding_C(void);
146-
void internal_error_with_cleanup(const char *call_name, const char *format, ...);
146+
NORET void internal_error_with_cleanup(const char *call_name, const char *format, ...);
147147

148148
// reorder.c
149149
SEXP reorder(SEXP x, SEXP order);
@@ -259,7 +259,7 @@ SEXP islockedR(SEXP x);
259259
bool need2utf8(SEXP x);
260260
SEXP coerceUtf8IfNeeded(SEXP x);
261261
SEXP coerceAs(SEXP x, SEXP as, SEXP copyArg);
262-
void internal_error(const char *call_name, const char *format, ...);
262+
NORET void internal_error(const char *call_name, const char *format, ...);
263263

264264
// types.c
265265
char *end(char *start);

0 commit comments

Comments
 (0)