summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2022-04-10 00:00:00 -0500
committerCraig Small <csmall@dropbear.xyz>2022-04-11 16:41:12 +1000
commit9e77e138c16919162bc6ac78f7eebd1db9c518f7 (patch)
tree30c7b2c477248868e45ebe629cfb37b5c3fb82b9 /NEWS
parent7279cd8e4d21f8fab62e34e4695b46e86cba2442 (diff)
downloadprocps-ng-9e77e138c16919162bc6ac78f7eebd1db9c518f7.tar.gz
library: fix 'smaps' bug preventing a build with clang
As a result of the issue referenced below, we'll trade our homegrown offset generator for an 'offsetof' macro found in the stddef.h header file. This pleases clang. [ and thanks to Daniel Kolesa for the report and fix ] Reference(s): . bug report & recommended solution https://gitlab.com/procps-ng/procps/-/issues/235 . clang error message proc/readproc.c:673:9: error: initializer element is not a compile-time constant mkENT(Rss), ^~~~~~~~~~ proc/readproc.c:661:34: note: expanded from macro 'mkENT' #define mkENT(F) { #F ":", -1, (int)((void*)&q->smap_ ## F - (void*)&q->fZERO) } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jim Warner <james.warner@comcast.net>
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index aef9c1a..7066210 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ procps-ng-NEXT
* ps: threads again display when -L is used with -q issue #234
* ps: proper aix format string behavior was restored
* sysctl: print dotted keys again
+ * top: fix 'smaps' bug preventing build under clang issue #235
procps-ng-4.0.0
---------------