home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apollo
- Path: sparky!uunet!usc!rpi!ghost.dsi.unimi.it!giachino
- From: giachino@ghost.dsi.unimi.it (luca giachino)
- Subject: NCS: problems compiling in ANSI C
- Keywords: NCS
- Organization: Computer Science Dep. - Milan University
- Date: Wed, 26 Aug 1992 10:23:40 GMT
- Message-ID: <1992Aug26.102340.23358@ghost.dsi.unimi.it>
- Lines: 32
-
- Hi,
- I cannot figure a way to avoid the following problem.
- The NIDL compiler inserts extern function declarations into
- the include files it produces; these functions are those
- that are described in the interface description source.
-
- You normally include these files in the manager sources,
- where you actually insert the bodies of the server functions.
- You might be in the need of rendering those functions invisible
- to the other sources, defining them as static. In this way
- the linker doesn't complain when you define different managers
- for the same interface.
-
- But the ANSI C compiler does complain issuing a warning because
- these static functions appear defined with two different prototypes:
- in the include file as simple "#extern type function(type arg, ...)",
- and in the manager source as "static type function(type arg, ...)".
-
- Is anybody able to tell me a way for avoiding those annoing warnings?
-
- Thank you in advance.
-
-
- ---------------------------------------
- Giachino Luca
- Computer Science Department
- Universita' Statale di Milano
- Milano, ITALY
-
- EMAIL: giachino@ghost.dsi.unimi.it
- ---------------------------------------
-
-