Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8e48d7bc
Commit
8e48d7bc
authored
Apr 01, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.
(write_c_args): Use it to suppress GCC warning.
parent
6ddae4ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
lib-src/ChangeLog
lib-src/ChangeLog
+5
-0
lib-src/make-docfile.c
lib-src/make-docfile.c
+8
-1
No files found.
lib-src/ChangeLog
View file @
8e48d7bc
2011-04-01 Paul Eggert <eggert@cs.ucla.edu>
* make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.
(write_c_args): Use it to suppress GCC warning.
2011-03-30 Paul Eggert <eggert@cs.ucla.edu>
Fix a problem found by GCC 4.6.0's static checks.
...
...
lib-src/make-docfile.c
View file @
8e48d7bc
...
...
@@ -66,6 +66,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
#endif
/* Use this to suppress gcc's `...may be used before initialized' warnings. */
#ifdef lint
# define IF_LINT(Code) Code
#else
# define IF_LINT(Code)
/* empty */
#endif
static
int
scan_file
(
char
*
filename
);
static
int
scan_lisp_file
(
const
char
*
filename
,
const
char
*
mode
);
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)
{
register
char
*
p
;
int
in_ident
=
0
;
char
*
ident_start
;
char
*
ident_start
IF_LINT
(
=
NULL
)
;
size_t
ident_length
=
0
;
fprintf
(
out
,
"(fn"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment