Resolve -Wstrict-prototypes warnings with clang-15
warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
This commit is contained in:
parent
4dd285fad7
commit
6c4010e442
15 changed files with 34 additions and 34 deletions
|
|
@ -1356,14 +1356,14 @@ static void add_chunk(DOH *ns, DOH *chunk, int allow) {
|
|||
push/pop_imported(): helper functions for defining and undefining
|
||||
SWIGIMPORTED (when %importing a file).
|
||||
*/
|
||||
static void push_imported() {
|
||||
static void push_imported(void) {
|
||||
if (imported_depth == 0) {
|
||||
Preprocessor_define("SWIGIMPORTED 1", 0);
|
||||
}
|
||||
++imported_depth;
|
||||
}
|
||||
|
||||
static void pop_imported() {
|
||||
static void pop_imported(void) {
|
||||
--imported_depth;
|
||||
if (imported_depth == 0) {
|
||||
Preprocessor_undef("SWIGIMPORTED");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue