Skip to content

Commit

Permalink
Merge pull request #115 from brittonsmith/void
Browse files Browse the repository at this point in the history
Change get_grackle_version to explicitly accept zero arguments.
  • Loading branch information
brittonsmith committed Jun 24, 2022
2 parents be1c6d1 + 9f2228b commit a089c83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ auto_get_version.c:
-@echo '#error "Something went wrong while auto-generating macros"' >> $@
-@echo '#endif' >> $@
-@echo '' >> $@
-@echo 'grackle_version get_grackle_version() {' >> $@
-@echo 'grackle_version get_grackle_version(void) {' >> $@
-@echo ' grackle_version out;' >> $@
-@echo ' out.version = AUTO_VERSION;' >> $@
-@echo ' out.branch = AUTO_BRANCH;' >> $@
Expand Down
2 changes: 1 addition & 1 deletion src/clib/grackle.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ int _calculate_temperature(chemistry_data *my_chemistry,

int _free_chemistry_data(chemistry_data *my_chemistry, chemistry_data_storage *my_rates);

grackle_version get_grackle_version();
grackle_version get_grackle_version(void);

#endif

0 comments on commit a089c83

Please sign in to comment.