]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: testsuite: remove usage of ##__VA_ARGS__
authorIndu Bhagat <indu.bhagat@oracle.com>
Wed, 26 Nov 2025 06:31:17 +0000 (22:31 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Wed, 26 Nov 2025 06:44:00 +0000 (22:44 -0800)
commit39b6fee4842875e29803f2ef92f52de185e84f36
tree792612e3aef2f8ca88ba70aae783d569b9b68997
parent0217fa55cbe406d6cdf122f5cd998f1ddb3461d3
libsframe: testsuite: remove usage of ##__VA_ARGS__

'##__VA_ARGS' is a GNU extension, the usage of which in the testsuite of
libsframe may cause failure to build on platforms where the compiler may
not support the GNU extension.

This GNU extension swallows the preceding comma if the variable
arguments list is empty.  In libsframe testsuite though, an empty list
is never used.  Usages will remain of the following type:
  - TEST (cond, "string", vars);
or
  - TEST (cond, "string");

Mailing list discussion:
https://sourceware.org/pipermail/binutils/2025-November/145825.html

PR libsframe/33437

libsframe/testsuite/
PR libsframe/33437
* sframe-test.h: Replace ##__VA_ARGS__ with __VA_ARGS__.
libsframe/testsuite/sframe-test.h