diff -pruN 0.3.10+nods-4.1/debian/changelog 0.3.10+nods-4.2/debian/changelog
--- 0.3.10+nods-4.1/debian/changelog	2021-02-06 16:02:21.000000000 +0000
+++ 0.3.10+nods-4.2/debian/changelog	2022-09-03 23:29:25.000000000 +0000
@@ -1,3 +1,11 @@
+nextepc (0.3.10+nods-4.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix ftbfs with GCC-11. (Closes: #984256)
+    - Thanks Steve for the patch.
+
+ -- Sudip Mukherjee <sudipm.mukherjee@gmail.com>  Sun, 04 Sep 2022 00:29:25 +0100
+
 nextepc (0.3.10+nods-4.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -pruN 0.3.10+nods-4.1/debian/patches/gcc-11.patch 0.3.10+nods-4.2/debian/patches/gcc-11.patch
--- 0.3.10+nods-4.1/debian/patches/gcc-11.patch	1970-01-01 00:00:00.000000000 +0000
+++ 0.3.10+nods-4.2/debian/patches/gcc-11.patch	2022-09-03 23:23:48.000000000 +0000
@@ -0,0 +1,27 @@
+Description: fix build failure with gcc-11.
+Author: Steve Langasek <steve.langasek@ubuntu.com>
+Bug-Debian: https://bugs.debian.org/984256
+Last-Update: 2021-11-18
+
+Index: nextepc-0.3.10+nods/lib/core/test/testatomic.c
+===================================================================
+--- nextepc-0.3.10+nods.orig/lib/core/test/testatomic.c
++++ nextepc-0.3.10+nods/lib/core/test/testatomic.c
+@@ -100,7 +100,7 @@
+ 
+ static void test_casptr_equal_nonnull(abts_case *tc, void *data)
+ {
+-    int a, b;
++    int a = 0, b = 0;
+     void *target_ptr = &a;
+     void *old_ptr;
+ 
+@@ -111,7 +111,7 @@
+ 
+ static void test_casptr_notequal(abts_case *tc, void *data)
+ {
+-    int a, b;
++    int a = 0, b = 0;
+     void *target_ptr = &a;
+     void *old_ptr;
+ 
diff -pruN 0.3.10+nods-4.1/debian/patches/series 0.3.10+nods-4.2/debian/patches/series
--- 0.3.10+nods-4.1/debian/patches/series	2021-01-23 22:35:09.000000000 +0000
+++ 0.3.10+nods-4.2/debian/patches/series	2022-09-03 23:23:48.000000000 +0000
@@ -5,3 +5,4 @@
 0005-Set-install-dir-for-freediameter-libs.patch
 0006-Fix-big-endian-bug.patch
 0007-Patch-deprecated-sys-sysctl.h-problem.patch
+gcc-11.patch
