Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1758:12a01c2778c0
Date: 2015-04-29 13:42 +0200
http://bitbucket.org/pypy/stmgc/changeset/12a01c2778c0/
Log: It is always better to use "void" in the argument list when there is
no argument.
diff --git a/c8/stm/core.c b/c8/stm/core.c
--- a/c8/stm/core.c
+++ b/c8/stm/core.c
@@ -308,7 +308,7 @@
static void reset_modified_from_backup_copies(int segment_num); /* forward */
-static bool _stm_validate()
+static bool _stm_validate(void)
{
/* returns true if we reached a valid state, or false if
we need to abort now */
diff --git a/c8/stm/core.h b/c8/stm/core.h
--- a/c8/stm/core.h
+++ b/c8/stm/core.h
@@ -297,7 +297,7 @@
static void synchronize_objects_flush(void);
static void _signal_handler(int sig, siginfo_t *siginfo, void *context);
-static bool _stm_validate();
+static bool _stm_validate(void);
static inline bool was_read_remote(char *base, object_t *obj)
{
@@ -329,7 +329,7 @@
spinlock_release(get_priv_segment(segnum)->privatization_lock);
}
-static inline bool all_privatization_locks_acquired()
+static inline bool all_privatization_locks_acquired(void)
{
#ifndef NDEBUG
long l;
@@ -343,7 +343,7 @@
#endif
}
-static inline void acquire_all_privatization_locks()
+static inline void acquire_all_privatization_locks(void)
{
/* XXX: don't do for the sharing seg0 */
long l;
@@ -352,7 +352,7 @@
}
}
-static inline void release_all_privatization_locks()
+static inline void release_all_privatization_locks(void)
{
long l;
for (l = NB_SEGMENTS-1; l >= 0; l--) {
diff --git a/c8/stm/gcpage.c b/c8/stm/gcpage.c
--- a/c8/stm/gcpage.c
+++ b/c8/stm/gcpage.c
@@ -681,7 +681,7 @@
_stm_smallmalloc_sweep();
}
-static void clean_up_commit_log_entries()
+static void clean_up_commit_log_entries(void)
{
struct stm_commit_log_entry_s *cl, *next;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit