[llvm-bugs] [Bug 35274] New: error: too few arguments provided to function-like macro invocation when C++ function name same with glibc

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 10 01:16:34 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35274

            Bug ID: 35274
           Summary: error: too few arguments provided to function-like
                    macro invocation when C++ function name same with
                    glibc
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lesliezhai at llvm.org.cn
                CC: llvm-bugs at lists.llvm.org

Hi LLVM developers,

platform/Stream.h:48:19: error: too few arguments provided to function-like
macro invocation
    int putc(int c);                                                            
                  ^                                                             
gcc-arm-none-eabi-6-2017-q2-update/arm-none-eabi/include/stdio.h:740:9: note:
macro 'putc' defined here
#define putc(x, fp)     __sputc_r(_REENT, x, fp)


platform/Stream.h:48
https://github.com/ARMmbed/mbed-os/blob/master/platform/Stream.h#L48

Regards,
Leslie Zhai

-- 
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/20171110/cf5b7457/attachment.html>


More information about the llvm-bugs mailing list