summaryrefslogtreecommitdiff
path: root/tests/Gtest-concurrent.c
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-19 13:50:59 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:51:21 +0300
commit6b55e0ab51eee7dbea679fda2b37ecf61f0025e5 (patch)
tree60be8a74148b3681b5daedef9cac8a98ee1b04a7 /tests/Gtest-concurrent.c
parent5e7e890a0b75fc9b64838dd197f554c6c6285d88 (diff)
downloadlibunwind-6b55e0ab51eee7dbea679fda2b37ecf61f0025e5.tar.gz
Use `UNUSED' in tests
Diffstat (limited to 'tests/Gtest-concurrent.c')
-rw-r--r--tests/Gtest-concurrent.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/Gtest-concurrent.c b/tests/Gtest-concurrent.c
index b98b6c0b..6f3447fd 100644
--- a/tests/Gtest-concurrent.c
+++ b/tests/Gtest-concurrent.c
@@ -27,6 +27,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
# include "config.h"
#endif
+#include "compiler.h"
+
#include <libunwind.h>
#include <limits.h>
#include <pthread.h>
@@ -46,7 +48,7 @@ int got_usr1, got_usr2;
char *sigusr1_sp;
void
-handler (int sig __attribute__((unused)))
+handler (int sig UNUSED)
{
unw_word_t ip;
unw_context_t uc;
@@ -68,7 +70,7 @@ handler (int sig __attribute__((unused)))
}
void *
-worker (void *arg __attribute__((unused)))
+worker (void *arg UNUSED)
{
signal (SIGUSR1, handler);
@@ -102,7 +104,7 @@ doit (void)
}
int
-main (int argc, char **argv __attribute__((unused)))
+main (int argc, char **argv UNUSED)
{
if (argc > 1)
verbose = 1;