[Bug 1742] Warnings in system headers
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Thu Feb 24 15:00:11 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1742
--- Comment #9 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2011-02-24 09:00:10 CST ---
Ralf, thanks for the explanation. I now understand the problem a bit more.
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > (In reply to comment #5)
> > > > Thus it is natural to use the
> > > > definitions from <sys/cdefs.h> in <rtems/bsd/sys/cdefs.h>.
> > > No ... <rtems/bsd/sys/cdefs.h> _replaces_ <sys/cdefs.h>
> >
> > Would it then make sense to eliminate the content of <sys/cdefs.h>?
> Depends on what you mean.
>
> Inside of the RTEMS source-tree all sources use <rtems/bsd/sys/cdefs.h>.
> i.e. inside of RTEMS usage of <sys/cdefs.h> is eliminated.
This statement is not true, and the key to solve the warnings. It seems that I
was not the only one who did not understand the cdefs.h problem.
~/rtems/cpukit > grep -r 'include.*<sys.cdefs.h' .
./libcsupport/include/sys/statvfs.h:#include <sys/cdefs.h>
./libmisc/shell/vwarnx.c:#include <sys/cdefs.h>
./libmisc/shell/pwcache.c:#include <sys/cdefs.h>
./libmisc/shell/fts.h:#include <sys/cdefs.h>
./libmisc/shell/filemode.c:#include <sys/cdefs.h>
./libmisc/shell/dd-misc.c:#include <sys/cdefs.h>
./libmisc/shell/hexdump-parse.c:#include <sys/cdefs.h>
./libmisc/shell/hexdump-odsyntax.c:#include <sys/cdefs.h>
./libmisc/shell/verr.c:#include <sys/cdefs.h>
./libmisc/shell/utils-cp.c:#include <sys/cdefs.h>
./libmisc/shell/cmp-ls.c:#include <sys/cdefs.h>
./libmisc/shell/hexsyntax.c:#include <sys/cdefs.h>
./libmisc/shell/main_mknod.c:#include <sys/cdefs.h>
./libmisc/shell/dd-conv_tab.c:#include <sys/cdefs.h>
./libmisc/shell/fts.c:#include <sys/cdefs.h>
./libmisc/shell/main_mv.c:#include <sys/cdefs.h>
./libmisc/shell/dd-position.c:#include <sys/cdefs.h>
./libmisc/shell/dd-args.c:#include <sys/cdefs.h>
./libmisc/shell/vis.h:#include <sys/cdefs.h>
./libmisc/shell/extern-ls.h:#include <sys/cdefs.h>
./libmisc/shell/utils-ls.c:#include <sys/cdefs.h>
./libmisc/shell/main_dd.c:#include <sys/cdefs.h>
./libmisc/shell/verrx.c:#include <sys/cdefs.h>
./libmisc/shell/print-ls.c:#include <sys/cdefs.h>
./libmisc/shell/hexdump-conv.c:#include <sys/cdefs.h>
./libmisc/shell/warnx.c:#include <sys/cdefs.h>
./libmisc/shell/mknod-pack_dev.c:#include <sys/cdefs.h>
./libmisc/shell/vwarn.c:#include <sys/cdefs.h>
./libmisc/shell/main_hexdump.c:#include <sys/cdefs.h>
./libmisc/shell/warn.c:#include <sys/cdefs.h>
./libmisc/shell/main_rm.c:#include <sys/cdefs.h>
./libmisc/shell/extern-cp.h:#include <sys/cdefs.h>
./libmisc/shell/err.c:#include <sys/cdefs.h>
./libmisc/shell/err.h:#include <sys/cdefs.h>
./libmisc/shell/dd-conv.c:#include <sys/cdefs.h>
./libmisc/shell/vis.c:#include <sys/cdefs.h>
./libmisc/shell/main_ls.c:#include <sys/cdefs.h>
./libmisc/shell/hexdump-display.c:#include <sys/cdefs.h>
./libmisc/shell/main_ln.c:#include <sys/cdefs.h>
./libmisc/shell/errx.c:#include <sys/cdefs.h>
./telnetd/des.c:#include <sys/cdefs.h>
In particular:
./libcsupport/include/sys/statvfs.h:#include <sys/cdefs.h>
This causes the warning (e.g. included from <rtems/confdefs.h>).
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list