vicente has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1214855?usp=email )
Change subject: build: fix the build error with invalid preprocessing token
......................................................................
build: fix the build error with invalid preprocessing token
We encounter the following error during build
In file included from /nfs-ganesha/src/monitoring/include/prometheus_exposer.h:35,
from /nfs-ganesha/src/monitoring/prometheus_exposer.cc:37:
/nfs-ganesha/src/libntirpc/src/monitoring/include/monitoring.h:162:22: error: pasting
"NOT_USED_" and "*" does not give a valid preprocessing token
162 | #define UNUSED_(arg) NOT_USED_##arg UNUSED_ATTR
| ^~~~~~~~~
/nfs-ganesha/src/libntirpc/src/monitoring/include/monitoring.h:161:21: note: in
expansion of macro 'UNUSED_'
161 | #define UNUSED(...) UNUSED_(__VA_ARGS__)
| ^~~~~~~
/nfs-ganesha/src/monitoring/include/prometheus_exposer.h:105:44: note: in expansion of
macro 'UNUSED'
105 | prometheus_exposer__start(const sockaddr_t UNUSED(*addr),
| ^~~~~~
The `NOT_USED_##arg` is invalidate with the pointer preprocessing.
We should move the pointer out of the macro likes libntirpc does.
Change-Id: Ieec01fd4957a2d6a65b02eb9a12c90abd15cb496
Signed-off-by: Vicente Cheng <vicente.cheng(a)suse.com>
---
M src/monitoring/include/prometheus_exposer.h
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/55/1214855/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1214855?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ieec01fd4957a2d6a65b02eb9a12c90abd15cb496
Gerrit-Change-Number: 1214855
Gerrit-PatchSet: 1
Gerrit-Owner: vicente <freeze.bilsted(a)gmail.com>