Skip to content

fix 2 build warnings #37

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

Merged
merged 2 commits into from
Aug 8, 2024
Merged

fix 2 build warnings #37

merged 2 commits into from
Aug 8, 2024

Conversation

wkliao
Copy link
Member

@wkliao wkliao commented Aug 8, 2024

2 warnings when running

python3 setup.py install

wkliao added 2 commits August 8, 2024 12:22
src/pnetcdf/_utils.c: In function '__pyx_pymod_exec__utils':
src/pnetcdf/_utils.c:17646:3: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   import_array();
   ^~~~~~~~~~~~

src/pnetcdf/_Variable.c: In function '__pyx_pymod_exec__Variable':
src/pnetcdf/_Variable.c:77507:3: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   import_array();
   ^~~~~~~~~~~~
src/pnetcdf/_Variable.c: In function '__pyx_pw_7pnetcdf_9_Variable_8Variable_1__init__':
src/pnetcdf/_Variable.c:10050:11: warning: '__pyx_v_xtype' may be used uninitialized in this function [-Wmaybe-uninitialized]
   nc_type __pyx_v_xtype;
           ^~~~~~~~~~~~~
@wkliao wkliao merged commit 8a5d8aa into Parallel-NetCDF:main Aug 8, 2024
3 checks passed
@wkliao wkliao deleted the build_warning branch August 8, 2024 17:57
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.

1 participant