From 532d4a24e2013262dfa41fd85c06a9715c99abf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 24 Oct 2022 21:03:42 +0200 Subject: New upstream version 4.7 --- src/tc-list.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tc-list.c') diff --git a/src/tc-list.c b/src/tc-list.c index c30f5aa..751f462 100644 --- a/src/tc-list.c +++ b/src/tc-list.c @@ -39,6 +39,8 @@ static void l_init(unsigned int max, bool unshift) obj = new struct text_object; #else obj = malloc(sizeof(*obj)); + if (obj == NULL) + abort(); #endif HXlist_init(&obj->list); obj->id[0] = HX_irand('a', 'z'+1); @@ -111,6 +113,8 @@ static void l_empty(void) static void l_shift(void) { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" /* Check for -Wshadow warnings */ struct object { int value; @@ -130,6 +134,7 @@ static void l_shift(void) HXclist_push(&clh, &q.anchor); x = p = HXclist_pop(&clh, struct object, anchor); printf("%d\n", p->value); +#pragma GCC diagnostic pop } int main(int argc, const char **argv) -- cgit v1.2.3 From bfef0924f58eab930bdd826ac0132786abc32220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 29 Jan 2023 16:17:51 +0100 Subject: New upstream version 4.10 --- src/tc-list.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/tc-list.c') diff --git a/src/tc-list.c b/src/tc-list.c index 751f462..e0087e3 100644 --- a/src/tc-list.c +++ b/src/tc-list.c @@ -1,10 +1,4 @@ -/* - * Copyright Jan Engelhardt - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the WTF Public License version 2 or - * (at your option) any later version. - */ +// SPDX-License-Identifier: MIT #ifdef __cplusplus # include # include -- cgit v1.2.3