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

Fix deprecation warnings with recent compilers and CMake #8

Open
schwicke opened this issue Jan 6, 2025 · 0 comments
Open

Fix deprecation warnings with recent compilers and CMake #8

schwicke opened this issue Jan 6, 2025 · 0 comments

Comments

@schwicke
Copy link
Collaborator

schwicke commented Jan 6, 2025

Some things to be fixed in recent versions of cmake:

CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

and clang:

src/libphigs/css/css_el.c:85:52: 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]
src/libphigs/css/css_el.c:98:3: 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]
src/libphigs/css/css_el.c:101:7: 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]
src/libphigs/css/css_el.c:109:7: 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]
src/libphigs/css/css_el.c:362:6: 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]
5 warnings generated.
src/libphigs/css/css_inq.c:121:6: 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]
src/libphigs/css/css_inq.c:159:3: 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]
2 warnings generated.
src/libphigs/css/css_str.c:149:9: 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]
src/libphigs/css/css_str.c:852:6: 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]
2 warnings generated.
src/libphigs/ut/ut_htab.c:154:19: 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]
1 warning generated.
src/libphigs/phg/phg.c:497:10: 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]
1 warning generated.
src/libphigs/ws/ws_inp.c:1379:43: warning: implicit conversion from enumeration type 'Pin_class' to different enumeration type 'Phg_args_idev_class' [-Wenum-conversion]
1 warning generated.
src/libphigs/ws/wstx_ini.c:324:29: warning: implicit conversion from enumeration type 'Wst_loc_type' to different enumeration type 'Wst_stroke_type' [-Wenum-conversion]
src/libphigs/ws/wstx_ini.c:333:27: warning: implicit conversion from enumeration type 'Wst_loc_type' to different enumeration type 'Wst_pick_type' [-Wenum-conversion]
2 warnings generated.
src/libphigs/errors/err.c:45:4: 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]
src/libphigs/errors/err.c:96:7: 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]
2 warnings generated.
src/libphigs/c_binding/cb_lite.c:41:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
1 warning generated.
src/libphigs/css/css_el.c:85:52: 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]
src/libphigs/css/css_el.c:98:3: 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]
src/libphigs/css/css_el.c:101:7: 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]
src/libphigs/css/css_el.c:109:7: 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]
src/libphigs/css/css_el.c:362:6: 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]
5 warnings generated.
src/libphigs/css/css_inq.c:121:6: 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]
src/libphigs/css/css_inq.c:159:3: 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]
2 warnings generated.
src/libphigs/css/css_str.c:149:9: 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]
src/libphigs/css/css_str.c:852:6: 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]
2 warnings generated.
src/libphigs/ut/ut_htab.c:154:19: 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]
1 warning generated.
src/libphigs/phg/phg.c:497:10: 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]
1 warning generated.
src/libphigs/ws/ws_inp.c:1379:43: warning: implicit conversion from enumeration type 'Pin_class' to different enumeration type 'Phg_args_idev_class' [-Wenum-conversion]
1 warning generated.
src/libphigs/ws/wstx_ini.c:324:29: warning: implicit conversion from enumeration type 'Wst_loc_type' to different enumeration type 'Wst_stroke_type' [-Wenum-conversion]
src/libphigs/ws/wstx_ini.c:333:27: warning: implicit conversion from enumeration type 'Wst_loc_type' to different enumeration type 'Wst_pick_type' [-Wenum-conversion]
2 warnings generated.
src/libphigs/errors/err.c:45:4: 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]
src/libphigs/errors/err.c:96:7: 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]
2 warnings generated.
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

No branches or pull requests

1 participant