Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] nethack: fix for gcc-12
@ 2022-12-03  5:29 7r3nzy
  2022-12-03  5:55 ` [PR PATCH] [Merged]: " sgn
  0 siblings, 1 reply; 2+ messages in thread
From: 7r3nzy @ 2022-12-03  5:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

There is a new pull request by 7r3nzy against master on the void-packages repository

https://github.com/7r3nzy/void-packages nethack
https://github.com/void-linux/void-packages/pull/40883

nethack: fix for gcc-12
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, x86-64


A patch file from https://github.com/void-linux/void-packages/pull/40883.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nethack-40883.patch --]
[-- Type: text/x-diff, Size: 1015 bytes --]

From 5ae52296a82a5732cfc3c796f087d1d1210b7728 Mon Sep 17 00:00:00 2001
From: Abdul Rehman <7r3nzy@gmail.com>
Date: Sat, 3 Dec 2022 10:18:56 +0500
Subject: [PATCH] nethack: fix for gcc-12

---
 srcpkgs/nethack/patches/2-gcc12.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 srcpkgs/nethack/patches/2-gcc12.patch

diff --git a/srcpkgs/nethack/patches/2-gcc12.patch b/srcpkgs/nethack/patches/2-gcc12.patch
new file mode 100644
index 000000000000..df7ed8df5e2c
--- /dev/null
+++ b/srcpkgs/nethack/patches/2-gcc12.patch
@@ -0,0 +1,14 @@
+--- a/include/tradstdc.h
++++ b/include/tradstdc.h
+@@ -431,7 +431,11 @@
+ #define NORETURN __attribute__((noreturn))
+ /* disable gcc's __attribute__((__warn_unused_result__)) since explicitly
+    discarding the result by casting to (void) is not accepted as a 'use' */
++#if __GNUC__ >= 11
++#define __warn_unused_result__ unused
++#elif
+ #define __warn_unused_result__ /*empty*/
++#endif
+ #define warn_unused_result /*empty*/
+ #endif
+ #endif

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: nethack: fix for gcc-12
  2022-12-03  5:29 [PR PATCH] nethack: fix for gcc-12 7r3nzy
@ 2022-12-03  5:55 ` sgn
  0 siblings, 0 replies; 2+ messages in thread
From: sgn @ 2022-12-03  5:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

There's a merged pull request on the void-packages repository

nethack: fix for gcc-12
https://github.com/void-linux/void-packages/pull/40883

Description:
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, x86-64


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-03  5:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-03  5:29 [PR PATCH] nethack: fix for gcc-12 7r3nzy
2022-12-03  5:55 ` [PR PATCH] [Merged]: " sgn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).