Skip to content

Commit 71c8f92

Browse files
committed
[6model] Added annotations to exception throwers.
This clears up several compiler warnings.
1 parent 8ad13af commit 71c8f92

File tree

6 files changed

+7
-1
lines changed

6 files changed

+7
-1
lines changed

src/6model/reprs/KnowHOWREPR.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ static INTVAL defined(PARROT_INTERP, PMC *obj) {
4545
}
4646

4747
/* Helper to die because this type doesn't support attributes. */
48+
PARROT_DOES_NOT_RETURN
4849
static void die_no_attrs(PARROT_INTERP) {
4950
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
5051
"KnowHOWREPR representation does not support attribute storage");

src/6model/reprs/P6int.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ static INTVAL defined(PARROT_INTERP, PMC *obj) {
4444
}
4545

4646
/* Helper to die because this type doesn't support attributes. */
47+
PARROT_DOES_NOT_RETURN
4748
static void die_no_attrs(PARROT_INTERP) {
4849
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
4950
"P6str representation does not support attribute storage");

src/6model/reprs/P6num.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ static INTVAL defined(PARROT_INTERP, PMC *obj) {
4444
}
4545

4646
/* Helper to die because this type doesn't support attributes. */
47+
PARROT_DOES_NOT_RETURN
4748
static void die_no_attrs(PARROT_INTERP) {
4849
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
4950
"P6str representation does not support attribute storage");

src/6model/reprs/P6opaque.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ static INTVAL defined(PARROT_INTERP, PMC *obj) {
391391
return instance->spill != NULL;
392392
}
393393

394-
/* Helper for complaining about attrbiute access errors. */
394+
/* Helper for complaining about attribute access errors. */
395+
PARROT_DOES_NOT_RETURN
395396
static void no_such_attribute(PARROT_INTERP, char *action, PMC *class_handle, STRING *name) {
396397
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
397398
"Can not %s non-existant attribute '%Ss' on class '%Ss'",

src/6model/reprs/P6str.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ static INTVAL defined(PARROT_INTERP, PMC *obj) {
4444
}
4545

4646
/* Helper to die because this type doesn't support attributes. */
47+
PARROT_DOES_NOT_RETURN
4748
static void die_no_attrs(PARROT_INTERP) {
4849
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
4950
"P6str representation does not support attribute storage");

src/6model/reprs/Uninstantiable.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ static INTVAL defined(PARROT_INTERP, PMC *obj) {
4242
}
4343

4444
/* Helper to die because this type doesn't support attributes. */
45+
PARROT_DOES_NOT_RETURN
4546
static void die_no_attrs(PARROT_INTERP) {
4647
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
4748
"Uninstantiable representation does not support attribute storage");

0 commit comments

Comments
 (0)