aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test228.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test228.c b/src/test228.c
index a8e55c4c..483d8ea2 100644
--- a/src/test228.c
+++ b/src/test228.c
@@ -20,11 +20,12 @@ int main(int argc, char* argv[])
volatile int run = 0;
volatile int started = 0;
-void* thread_main(void* unused)
+static void* thread_main(void* unused)
{
projCtx p_proj_ctxt;
projPJ p_WGS84_proj;
projPJ p_OSGB36_proj;
+ (void)unused;
__sync_add_and_fetch(&started, 1);
while(run == 0);
@@ -59,9 +60,13 @@ void* thread_main(void* unused)
int main(int argc, char* argv[])
{
int i;
+
pthread_t tid1, tid2;
pthread_attr_t attr1, attr2;
+ (void)argc;
+ (void)argv;
+
pthread_attr_init(&attr1);
pthread_attr_init(&attr2);