]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix failed to expand Py_UNUSED (rrdtoolmodule.c)
authorWolfgang Stöggl <c72578@yahoo.de>
Mon, 3 Jun 2019 09:04:41 +0000 (11:04 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 3 Jun 2019 11:39:39 +0000 (13:39 +0200)
- Fix: failed to expand 'Py_UNUSED', Invalid ## usage when expanding
  'Py_UNUSED'.
- Fixes: https://github.com/oetiker/rrdtool-1.x/issues/903

bindings/python/rrdtoolmodule.c

index 3bc795a07baa9cfc4d4bac284e50e2b7ec1daa55..9344c862b34f1a74695055c0eddca9ce6db90db3 100644 (file)
@@ -53,7 +53,7 @@
 #ifdef __GNUC__
  #define Py_UNUSED(name) _unused_ ## name __attribute__((unused))
 #else
- #define Py_UNUSED(name) _unused_ ## -name
+ #define Py_UNUSED(name) _unused_ ## name
 #endif
 #endif