aboutsummaryrefslogtreecommitdiff
path: root/src/cm
diff options
context:
space:
mode:
authorJ08nY2025-03-27 11:59:41 +0100
committerJ08nY2025-03-27 11:59:41 +0100
commite9c6d35a6efa5541cac33398ceb04e7fb721d6cd (patch)
treea65c049be90df52772d129a15fa4f8755463f598 /src/cm
parent0684f9dc440a4909d89392aa0c16fd9ba5249e76 (diff)
downloadecgen-e9c6d35a6efa5541cac33398ceb04e7fb721d6cd.tar.gz
ecgen-e9c6d35a6efa5541cac33398ceb04e7fb721d6cd.tar.zst
ecgen-e9c6d35a6efa5541cac33398ceb04e7fb721d6cd.zip
Fixup issues in clang with pedantic.
Diffstat (limited to 'src/cm')
-rw-r--r--src/cm/anomalous.c4
-rw-r--r--src/cm/anomalous.h4
-rw-r--r--src/cm/cm.c2
-rw-r--r--src/cm/cm.h2
-rw-r--r--src/cm/cm_any.c2
-rw-r--r--src/cm/cm_any.h2
-rw-r--r--src/cm/cm_prime.c2
-rw-r--r--src/cm/p1363.c2
8 files changed, 10 insertions, 10 deletions
diff --git a/src/cm/anomalous.c b/src/cm/anomalous.c
index 70df8e4..36d6890 100644
--- a/src/cm/anomalous.c
+++ b/src/cm/anomalous.c
@@ -8,7 +8,7 @@
static disc_t **disc_table;
-void anomalous_init() {
+void anomalous_init(void) {
disc_table = try_calloc(sizeof(disc_t *) * 5);
for (int i = 0; i < 5; ++i) {
disc_table[i] = try_calloc(sizeof(disc_t));
@@ -128,7 +128,7 @@ GENERATOR(anomalous_gen_order) {
return 1;
}
-void anomalous_quit() {
+void anomalous_quit(void) {
if (disc_table) {
for (int i = 0; i < 5; ++i) {
if (disc_table[i]) {
diff --git a/src/cm/anomalous.h b/src/cm/anomalous.h
index 73b84fd..6e897d5 100644
--- a/src/cm/anomalous.h
+++ b/src/cm/anomalous.h
@@ -49,12 +49,12 @@ GENERATOR(anomalous_gen_order);
/**
* @brief Initialize anomalous generation, allocate and set the disc_table.
*/
-void anomalous_init();
+void anomalous_init(void);
/**
* @brief Deinitialize anomalous generation, free the discriminants from the
* disc_table.
*/
-void anomalous_quit();
+void anomalous_quit(void);
#endif // ECGEN_CM_ANOMALOUS_H
diff --git a/src/cm/cm.c b/src/cm/cm.c
index 9845500..4690ed8 100644
--- a/src/cm/cm.c
+++ b/src/cm/cm.c
@@ -237,7 +237,7 @@ static void cm_quit(exhaustive_t *setup) {
exhaustive_clear(setup);
}
-int cm_do() {
+int cm_do(void) {
debug_log_start("Starting Complex Multiplication method");
gen_f generators[OFFSET_END] = {NULL};
diff --git a/src/cm/cm.h b/src/cm/cm.h
index b80d987..a130366 100644
--- a/src/cm/cm.h
+++ b/src/cm/cm.h
@@ -15,6 +15,6 @@
*
* @return
*/
-int cm_do();
+int cm_do(void);
#endif // ECGEN_CM_CM_H
diff --git a/src/cm/cm_any.c b/src/cm/cm_any.c
index c5f8410..5e4bab2 100644
--- a/src/cm/cm_any.c
+++ b/src/cm/cm_any.c
@@ -461,7 +461,7 @@ GENERATOR(cm_gen_order) {
return 1;
}
-void cm_any_quit() {
+void cm_any_quit(void) {
if (min_d) {
if (min_d->d && isclone(min_d->d)) {
gunclone(min_d->d);
diff --git a/src/cm/cm_any.h b/src/cm/cm_any.h
index 05e5103..873b68f 100644
--- a/src/cm/cm_any.h
+++ b/src/cm/cm_any.h
@@ -90,6 +90,6 @@ GENERATOR(cm_gen_order);
/**
* @brief Deinitialize.
*/
-void cm_any_quit();
+void cm_any_quit(void);
#endif // ECGEN_CM_ANY_H
diff --git a/src/cm/cm_prime.c b/src/cm/cm_prime.c
index 64ba72e..fa4d6f5 100644
--- a/src/cm/cm_prime.c
+++ b/src/cm/cm_prime.c
@@ -160,4 +160,4 @@ GENERATOR(cm_gen_curve_prime) {
curve->b = ell_get_a6(e);
curve->curve = e;
return 1;
-} \ No newline at end of file
+}
diff --git a/src/cm/p1363.c b/src/cm/p1363.c
index fad2a05..90dcfd2 100644
--- a/src/cm/p1363.c
+++ b/src/cm/p1363.c
@@ -449,4 +449,4 @@ GEN p1363_polclass(GEN D) {
GEN WD = p1363_poly(D, forms, nforms);
p1363_free(&forms, nforms);
return gerepileupto(ltop, WD);
-} \ No newline at end of file
+}