[LLVMbugs] [Bug 18940] New: llvm/support/MathExtras.h compile error when compiling with strict #if variable defined checking
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Sun Feb 23 22:22:08 PST 2014
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=18940
            Bug ID: 18940
           Summary: llvm/support/MathExtras.h compile error when compiling
                    with strict #if variable defined checking
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: morten.brodersen at contecint.com.au
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified
Note: This is a bug for LLVM 3.4 not trunk. 3.4 can not be selected in the
bugzilla version widget.
llvm/support/MathExtras.h use the following pattern:
#if _MSC_VER
instead of (for example)
#if (defined(_MSC_VER) && _MSC_VER)
resulting in MathExtras.h not compiling with strict "preprocessor variables are
defined" checking.
Changing:
#if _MSC_VER
to:
#if (defined(_MSC_VER) && _MSC_VER)
fixes the problem.
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140224/fb380ff1/attachment.html>
    
    
More information about the llvm-bugs
mailing list