Commit 75c9e143 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Initialisations to keep GCC happy

parent 869f9305
...@@ -498,7 +498,7 @@ void read_ic_parallel(char* fileName, const struct UnitSystem* internal_units, ...@@ -498,7 +498,7 @@ void read_ic_parallel(char* fileName, const struct UnitSystem* internal_units,
int num_fields = 0; int num_fields = 0;
struct io_props list[100]; struct io_props list[100];
size_t N; size_t N = 0;
/* Read particle fields into the particle structure */ /* Read particle fields into the particle structure */
switch (ptype) { switch (ptype) {
...@@ -729,7 +729,7 @@ void write_output_parallel(struct engine* e, const char* baseName, ...@@ -729,7 +729,7 @@ void write_output_parallel(struct engine* e, const char* baseName,
int num_fields = 0; int num_fields = 0;
struct io_props list[100]; struct io_props list[100];
size_t N; size_t N = 0;
/* Write particle fields from the particle structure */ /* Write particle fields from the particle structure */
switch (ptype) { switch (ptype) {
......
...@@ -558,7 +558,7 @@ void read_ic_serial(char* fileName, const struct UnitSystem* internal_units, ...@@ -558,7 +558,7 @@ void read_ic_serial(char* fileName, const struct UnitSystem* internal_units,
int num_fields = 0; int num_fields = 0;
struct io_props list[100]; struct io_props list[100];
size_t N; size_t N = 0;
/* Read particle fields into the particle structure */ /* Read particle fields into the particle structure */
switch (ptype) { switch (ptype) {
...@@ -820,7 +820,7 @@ void write_output_serial(struct engine* e, const char* baseName, ...@@ -820,7 +820,7 @@ void write_output_serial(struct engine* e, const char* baseName,
int num_fields = 0; int num_fields = 0;
struct io_props list[100]; struct io_props list[100];
size_t N; size_t N = 0;
/* Write particle fields from the particle structure */ /* Write particle fields from the particle structure */
switch (ptype) { switch (ptype) {
......
...@@ -439,7 +439,7 @@ void read_ic_single(char* fileName, const struct UnitSystem* internal_units, ...@@ -439,7 +439,7 @@ void read_ic_single(char* fileName, const struct UnitSystem* internal_units,
int num_fields = 0; int num_fields = 0;
struct io_props list[100]; struct io_props list[100];
size_t N; size_t N = 0;
/* Read particle fields into the structure */ /* Read particle fields into the structure */
switch (ptype) { switch (ptype) {
...@@ -631,7 +631,7 @@ void write_output_single(struct engine* e, const char* baseName, ...@@ -631,7 +631,7 @@ void write_output_single(struct engine* e, const char* baseName,
int num_fields = 0; int num_fields = 0;
struct io_props list[100]; struct io_props list[100];
size_t N; size_t N = 0;
/* Write particle fields from the particle structure */ /* Write particle fields from the particle structure */
switch (ptype) { switch (ptype) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment