Fixed Windows builds by removing the __attribute__((unused)) construct.
This commit is contained in:
@ -234,10 +234,12 @@ int sb_lua_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
sb_request_t sb_lua_get_request(int __attribute__((unused))thread_id)
|
||||
sb_request_t sb_lua_get_request(int thread_id)
|
||||
{
|
||||
sb_request_t req;
|
||||
|
||||
(void) thread_id; /* unused */
|
||||
|
||||
if (sb_globals.max_requests != 0 && nevents >= sb_globals.max_requests)
|
||||
{
|
||||
req.type = SB_REQ_TYPE_NULL;
|
||||
|
||||
@ -97,10 +97,12 @@ int cpu_init(void)
|
||||
}
|
||||
|
||||
|
||||
sb_request_t cpu_get_request(int __attribute__ ((unused)) thread_id)
|
||||
sb_request_t cpu_get_request(int thread_id)
|
||||
{
|
||||
sb_request_t req;
|
||||
|
||||
|
||||
(void) thread_id; /* unused */
|
||||
|
||||
if (sb_globals.max_requests > 0 && req_performed >= sb_globals.max_requests)
|
||||
{
|
||||
req.type = SB_REQ_TYPE_NULL;
|
||||
|
||||
@ -216,11 +216,13 @@ int memory_init(void)
|
||||
}
|
||||
|
||||
|
||||
sb_request_t memory_get_request(int thread_id __attribute__((unused)))
|
||||
sb_request_t memory_get_request(int thread_id)
|
||||
{
|
||||
sb_request_t req;
|
||||
sb_mem_request_t *mem_req = &req.u.mem_request;
|
||||
|
||||
|
||||
(void) thread_id; /* unused */
|
||||
|
||||
SB_THREAD_MUTEX_LOCK();
|
||||
if (total_bytes >= memory_total_size)
|
||||
{
|
||||
|
||||
@ -138,11 +138,13 @@ int threads_cleanup(void)
|
||||
}
|
||||
|
||||
|
||||
sb_request_t threads_get_request(int thread_id __attribute__((unused)))
|
||||
sb_request_t threads_get_request(int thread_id)
|
||||
{
|
||||
sb_request_t sb_req;
|
||||
sb_threads_request_t *threads_req = &sb_req.u.threads_request;
|
||||
|
||||
(void) thread_id; /* unused */
|
||||
|
||||
SB_THREAD_MUTEX_LOCK();
|
||||
if (sb_globals.max_requests > 0 && req_performed >= sb_globals.max_requests)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user