Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly modernize C syntax #639

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Slightly modernize C syntax #639

merged 2 commits into from
Jan 27, 2025

Conversation

mmuetzel
Copy link
Contributor

Modern C compilers emit warnings like the following:

/Users/runner/work/elmerfem/elmerfem/fem/src/fft.c:389:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void BitReverseArray( N, T )
     ^

or:

/Users/runner/work/elmerfem/elmerfem/fem/src/Load.c:434:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
   return (*Function)( Model );
                     ^

Slightly modernize the syntax by fully qualifying the function prototypes.

Modern C compilers emit warnings like the following:
```
/Users/runner/work/elmerfem/elmerfem/fem/src/fft.c:389:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void BitReverseArray( N, T )
     ^
```
or:
```
/Users/runner/work/elmerfem/elmerfem/fem/src/Load.c:434:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
   return (*Function)( Model );
                     ^
```

Slightly modernize the syntax by fully qualifying the function
prototypes.
@raback raback merged commit 62f8f37 into ElmerCSC:devel Jan 27, 2025
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants