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

include/cglm/io.h:70:38: error: unused parameter 'ostream' [-Werror,-Wunused-parameter] #327

Open
yurivict opened this issue Jul 8, 2023 · 5 comments

Comments

@yurivict
Copy link

yurivict commented Jul 8, 2023

Compilation fails:

In file included from ../src/io.c:10:
In file included from ../src/../include/cglm/cglm.h:30:
../src/../include/cglm/io.h:70:38: error: unused parameter 'ostream' [-Werror,-Wunused-parameter]
glm_arch_print_name(FILE* __restrict ostream) {
                                     ^
1 error generated.

Version: 0.9.0
clang-16
FreeBSD 13.2

@recp
Copy link
Owner

recp commented Jul 8, 2023

Hi @yurivict

Did you compile latest sources may I ask?

@yurivict
Copy link
Author

yurivict commented Jul 8, 2023

This is for the FreeBSD port so we only use the last release.
Removing -Werror solved the problem.

@recp
Copy link
Owner

recp commented Jul 8, 2023

It is great to see the issue is fixed but,

I have just tried to build cglm on FreeBSD 13 ( aarch64 ), it succeeded without warnings and errors with Autotools and CMake. I did not install clang on FreeBSD yet but clang on macOS dont throw ant warnings/errors.

Maybe we should drop Werror for all build files?

@gottfriedleibniz
Copy link

gottfriedleibniz commented Jul 8, 2023

I believe this issue was fixed in 0.9.1. This version hasn't been released yet, so FreeBSD Ports is still bundling 0.9.0.

For reference (this is bad, don't do it), compiling master with clang -Weverything -Wno-reserved-macro-identifier -Wno-documentation-pedantic -Wno-float-equal spits out:

cglm/include/cglm/bezier.h:124:15: warning: implicit conversion from 'int' to 'float' may lose precision [-Wimplicit-int-float-conversion]
  for (i = 0; i < CGLM_DECASTEL_MAX; i++) {

And a few other useless warnings.

@recp
Copy link
Owner

recp commented Jul 8, 2023

93cdc89 should fix that warning thanks :)

Also this PR (#328) drops Werror

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants