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

Compiler warnings (error: unsafe buffer access) #1281

Open
tobbi opened this issue Mar 26, 2024 · 0 comments
Open

Compiler warnings (error: unsafe buffer access) #1281

tobbi opened this issue Mar 26, 2024 · 0 comments

Comments

@tobbi
Copy link

tobbi commented Mar 26, 2024

In file included from /home/runner/work/supertux/supertux/external/glm/glm/packing.hpp:173:
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:20:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   20 |                 u.in[1] = result[1];
      |                 ^~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:35:25: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   35 |                 return vec2(u.out[0], u.out[1]) * 1.5259021896696421759365224689097e-5f;
      |                                       ^~~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:49:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   49 |                 u.in[1] = result[1];
      |                 ^~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:64:31: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   64 |                 return clamp(vec2(u.out[0], u.out[1]) * 3.0518509475997192297128208258309e-5f, -1.0f, 1.0f);
      |                                             ^~~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:78:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   78 |                 u.in[1] = result[1];
      |                 ^~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:79:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   79 |                 u.in[2] = result[2];
      |                 ^~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:80:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   80 |                 u.in[3] = result[3];
      |                 ^~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:95:25: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   95 |                 return vec4(u.out[0], u.out[1], u.out[2], u.out[3]) * 0.0039215686274509803921568627451f;
      |                                       ^~~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:95:35: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   95 |                 return vec4(u.out[0], u.out[1], u.out[2], u.out[3]) * 0.0039215686274509803921568627451f;
      |                                                 ^~~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:95:45: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
   95 |                 return vec4(u.out[0], u.out[1], u.out[2], u.out[3]) * 0.0039215686274509803921568627451f;
      |                                                           ^~~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:109:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
  109 |                 u.in[1] = result[1];
      |                 ^~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:110:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
  110 |                 u.in[2] = result[2];
      |                 ^~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:111:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
  111 |                 u.in[3] = result[3];
      |                 ^~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:126:31: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
  126 |                 return clamp(vec4(u.out[0], u.out[1], u.out[2], u.out[3]) * 0.0078740157480315f, -1.0f, 1.0f);
      |                                             ^~~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:126:41: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
  126 |                 return clamp(vec4(u.out[0], u.out[1], u.out[2], u.out[3]) * 0.0078740157480315f, -1.0f, 1.0f);
      |                                                       ^~~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:126:51: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
  126 |                 return clamp(vec4(u.out[0], u.out[1], u.out[2], u.out[3]) * 0.0078740157480315f, -1.0f, 1.0f);
      |                                                                 ^~~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:138:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
  138 |                 u.in[1] = v[1];
      |                 ^~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:153:26: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
  153 |                 return uvec2(u.out[0], u.out[1]);
      |                                        ^~~~~
/home/runner/work/supertux/supertux/external/glm/glm/detail/func_packing.inl:165:3: error: unsafe buffer access [-Werror,-Wunsafe-buffer-usage]
  165 |                 u.in[1] = detail::toFloat16(v.y);
      |                 ^~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors 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