autoconf-archive-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autoconf Archive branch, master, updated. v2010.06.04-7-g0728dab


From: autoconf-archive-commits
Subject: Autoconf Archive branch, master, updated. v2010.06.04-7-g0728dab
Date: Wed, 16 Jun 2010 07:00:15 +0200

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Autoconf Archive".

The branch, master has been updated
       via  0728dab771b2a4da8032d5f0ade8870add680b39 (commit)
      from  8c4f1cb2f61e88456c3f71a5049074ed28ab22cc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0728dab771b2a4da8032d5f0ade8870add680b39
Author: Philip Allison <address@hidden>
Date:   Tue Jun 15 15:27:35 2010 +0200

    AX_PTHREAD: fix compiler warning in AC_TRY_LINK test program
    
    The test program generated by AX_PTHREAD's AC_TRY_LINK invocation generates 
a
    compiler warning (on Linux, using GCC 4). When building with "-Wall 
-Werror" in
    CFLAGS, as done during development to catch unexpected warnings, this turns
    into a compiler error; hence, all of the AC_TRY_LINK invocations fail, and 
the
    macro fails to detect any suitable compiler/linker flags for pthreads usage.
    
    A sample from config.log showing the error follows.
    
      configure:16038: result: no
      configure:15936: checking whether pthreads work without any flags
      configure:16029: gcc -o conftest -O3 -g -Wall -Werror -pipe 
-fvisibility=hidden -Wl,-O1 -Wl,--as-needed conftest.c >&5
      cc1: warnings being treated as errors
      conftest.c: In function 'main':
      conftest.c:31: error: 'th' is used uninitialized in this function
    
    This patch fixes the issue by placing pthread_create before pthread_join in 
the
    test program.

-----------------------------------------------------------------------

Summary of changes:
 NEWS             |    2 ++
 m4/ax_pthread.m4 |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Autoconf Archive



reply via email to

[Prev in Thread] Current Thread [Next in Thread]