diff options
| author | Paul Eggert | 2011-04-01 13:28:50 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-01 13:28:50 -0700 |
| commit | 8e48d7bc3fef6ca11af98c12d99426bd01a5b3de (patch) | |
| tree | dd37377e3753c61c0ecb4490ee2b16f1ce2d8cc0 /lib-src/make-docfile.c | |
| parent | 6ddae4efd9e8a3035eb610c39fb2c8f79e7f9893 (diff) | |
| download | emacs-8e48d7bc3fef6ca11af98c12d99426bd01a5b3de.tar.gz emacs-8e48d7bc3fef6ca11af98c12d99426bd01a5b3de.zip | |
* make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.
(write_c_args): Use it to suppress GCC warning.
Diffstat (limited to 'lib-src/make-docfile.c')
| -rw-r--r-- | lib-src/make-docfile.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index f900ea42e91..9b804684a12 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -66,6 +66,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 66 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP) | 66 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP) |
| 67 | #endif | 67 | #endif |
| 68 | 68 | ||
| 69 | /* Use this to suppress gcc's `...may be used before initialized' warnings. */ | ||
| 70 | #ifdef lint | ||
| 71 | # define IF_LINT(Code) Code | ||
| 72 | #else | ||
| 73 | # define IF_LINT(Code) /* empty */ | ||
| 74 | #endif | ||
| 75 | |||
| 69 | static int scan_file (char *filename); | 76 | static int scan_file (char *filename); |
| 70 | static int scan_lisp_file (const char *filename, const char *mode); | 77 | static int scan_lisp_file (const char *filename, const char *mode); |
| 71 | static int scan_c_file (char *filename, const char *mode); | 78 | static int scan_c_file (char *filename, const char *mode); |
| @@ -481,7 +488,7 @@ write_c_args (FILE *out, char *func, char *buf, int minargs, int maxargs) | |||
| 481 | { | 488 | { |
| 482 | register char *p; | 489 | register char *p; |
| 483 | int in_ident = 0; | 490 | int in_ident = 0; |
| 484 | char *ident_start; | 491 | char *ident_start IF_LINT (= NULL); |
| 485 | size_t ident_length = 0; | 492 | size_t ident_length = 0; |
| 486 | 493 | ||
| 487 | fprintf (out, "(fn"); | 494 | fprintf (out, "(fn"); |