patchGNU Autoconf Archive - Patches: patch #8550, AX_OPENMP: Prevent false negative...

 
 

patch #8550: AX_OPENMP: Prevent false negative due to -Wunused-variable

Submitter:  Moritz Klammler <moritz_klammler>
Submitted:  Wed 08 Oct 2014 07:39:29 PM UTC
   
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 Oct 2014 08:21:23 AM UTC, comment #1: 

Pushed in 019a6c6. Thank you very much for the patch.

Peter Simons <simons>
Group administrator
Wed 08 Oct 2014 07:39:29 PM UTC, original submission:  

If using GCC with CFLAGS='-Wall -Wextra -Werror', the macro AX_OPENMP will trigger a fatal compiler warning about an unused local variable which will erroneously be taken as a sign that the compiler has no OpenMP support.  The attached patch fixes this by moving the OpenMP code into a function that is called from main.

I have also run autoupdate over the macro.

Moritz Klammler <moritz_klammler>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #32247:  ax_openmp.m4 added by moritz_klammler (4KiB - application/x-m4)
file #32248:  ax_openmp.m4.patch added by moritz_klammler (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by simons
  • -email is unavailable- added by moritz_klammler (Submitted the item)
  •  

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-16 simons StatusReady For Test Done
        Open/ClosedOpen Closed
    2014-10-15 simons StatusNone Ready For Test
        Assigned toNone simons
        Carbon-Copy- Added steven g. johnson <stevenj@alum.mit.edu>
    2014-10-08 moritz_klammler Attached File- Added ax_openmp.m4, #32247
        Attached File- Added ax_openmp.m4.patch, #32248

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code