[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Add missing void to prototypes
From: |
Patrice Dumas |
Subject: |
branch master updated: Add missing void to prototypes |
Date: |
Tue, 11 Jun 2024 09:15:37 -0400 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new f9dda59fb0 Add missing void to prototypes
f9dda59fb0 is described below
commit f9dda59fb03ee29d524e65dabb9fec3b28d8c479
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Jun 11 15:15:28 2024 +0200
Add missing void to prototypes
* tp/Texinfo/XS/main/builtin_commands.h (set_element_type_name_info),
tp/Texinfo/XS/main/parser_conf.c (register_conf): add void in
prototypes. Found thanks to -Wstrict-prototypes based on Bruno.
---
ChangeLog | 8 ++++++++
tp/TODO | 2 +-
tp/Texinfo/XS/main/builtin_commands.h | 2 +-
tp/Texinfo/XS/main/parser_conf.c | 2 +-
tp/Texinfo/XS/main/parser_conf.h | 2 +-
5 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9f670aa5f5..9c5172eb0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-06-11 Patrice Dumas <pertusus@free.fr>
+
+ Add missing void to prototypes
+
+ * tp/Texinfo/XS/main/builtin_commands.h (set_element_type_name_info),
+ tp/Texinfo/XS/main/parser_conf.c (register_conf): add void in
+ prototypes. Found thanks to -Wstrict-prototypes based on Bruno.
+
2024-06-11 Patrice Dumas <pertusus@free.fr>
* doc/Makefile.am (pod2texi.texi): add
diff --git a/tp/TODO b/tp/TODO
index f90e622232..d7d60324f7 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -825,7 +825,7 @@ for file in t/*.t ; do bfile=`basename $file .t`; valgrind
-q --leak-check=full
Setting flags
-our_CFLAGS='-g -Wformat-security -Wall -Wno-parentheses -Wno-missing-braces'
+our_CFLAGS='-g -Wformat-security -Wstrict-prototypes -Wall -Wno-parentheses
-Wno-missing-braces'
./configure "CFLAGS=$our_CFLAGS" "PERL_EXT_CFLAGS=$our_CFLAGS"
unset our_CFLAGS
diff --git a/tp/Texinfo/XS/main/builtin_commands.h
b/tp/Texinfo/XS/main/builtin_commands.h
index 5f9dc9b74a..5b1fc4663a 100644
--- a/tp/Texinfo/XS/main/builtin_commands.h
+++ b/tp/Texinfo/XS/main/builtin_commands.h
@@ -163,7 +163,7 @@ enum command_id element_builtin_data_cmd (const ELEMENT *e);
#define INTERNAL_line -2
/* following related to element types */
-void set_element_type_name_info ();
+void set_element_type_name_info (void);
enum element_type find_element_type (char *type_name);
#endif
diff --git a/tp/Texinfo/XS/main/parser_conf.c b/tp/Texinfo/XS/main/parser_conf.c
index 0b489b7823..7cf590ef4a 100644
--- a/tp/Texinfo/XS/main/parser_conf.c
+++ b/tp/Texinfo/XS/main/parser_conf.c
@@ -53,7 +53,7 @@ retrieve_parser_conf (int parser_conf_descriptor)
}
PARSER_CONF *
-register_conf ()
+register_conf (void)
{
size_t parser_conf_index;
size_t i;
diff --git a/tp/Texinfo/XS/main/parser_conf.h b/tp/Texinfo/XS/main/parser_conf.h
index 381577bfc0..d675cb548b 100644
--- a/tp/Texinfo/XS/main/parser_conf.h
+++ b/tp/Texinfo/XS/main/parser_conf.h
@@ -45,7 +45,7 @@ typedef struct PARSER_CONF {
extern PARSER_CONF global_parser_conf;
-PARSER_CONF *register_conf ();
+PARSER_CONF *register_conf (void);
PARSER_CONF *retrieve_parser_conf (int parser_conf_descriptor);
void clear_parser_conf (PARSER_CONF *parser_conf);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Add missing void to prototypes,
Patrice Dumas <=