Bug 135584

Summary: /usr/include/pcap.h: non-portable whitespace encountered at line 41
Product: [openSUSE] SUSE LINUX 10.0 Reporter: a b <wharms>
Component: DevelopmentAssignee: Philipp Thomas <pth>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description a b 2005-11-26 10:27:23 UTC
While running makedepend. i got the following warnings:

makedepend: warning:  /usr/include/pcap.h:  non-portable whitespace encountered at line 41
makedepend: warning:  /usr/include/pcap.h:  non-portable whitespace encountered at line 43
makedepend: warning:  /usr/include/pcap.h:  non-portable whitespace encountered at line 44
makedepend: warning:  /usr/include/pcap.h:  non-portable whitespace encountered at line 46
makedepend: warning:  /usr/include/pcap.h:  non-portable whitespace encountered at line 47


The problem are lines like that:

#if defined(WIN32)
  #include <pcap-stdinc.h>
#elif defined(MSDOS)

removing the whitespace in front of #include silence the warning.
( see bug:135583)
Comment 1 Philipp Thomas 2005-11-28 10:27:46 UTC
This is perfectly OK as ANSI C89 allows this. Makedepend is just a relict from the pre-ANSI days.