Bug 135584 - /usr/include/pcap.h: non-portable whitespace encountered at line 41
Summary: /usr/include/pcap.h: non-portable whitespace encountered at line 41
Status: RESOLVED INVALID
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Development (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Minor
Target Milestone: ---
Assignee: Philipp Thomas
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-26 10:27 UTC by a b
Modified: 2005-11-28 10:27 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.