[LLVMbugs] [Bug 3305] New: clang emits wrong type warning: incompatible pointer types passing 'struct logfile *', expected ' struct logfile *'

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jan 9 10:35:36 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=3305

           Summary: clang emits wrong type warning: incompatible pointer
                    types passing 'struct logfile *', expected 'struct
                    logfile *'
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


attached (gcc -E processed) test case emits this:

....
screen.c:6101:17: warning: incompatible pointer types passing 'struct logfile
*', expected 'struct logfile *'
      logfwrite(p->w_log, buf, strlen(buf));
                ^~~~~~~~

there are many cases of this strange warning, clang as of Jan 7th does not
exhibit this behaviour


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list