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

Phazor build warnings #1301

Open
C0rn3j opened this issue Nov 18, 2024 · 0 comments
Open

Phazor build warnings #1301

C0rn3j opened this issue Nov 18, 2024 · 0 comments

Comments

@C0rn3j
Copy link
Collaborator

C0rn3j commented Nov 18, 2024

They aren't causing any issues from what I can tell, but they do spam the terminal a fair bit.

src/phazor/phazor.c: In functionf_write’:
src/phazor/phazor.c:903:33: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} andint’ [-Wsign-compare]
  903 |     if (frame->header.blocksize > (BUFF_SIZE - get_buff_fill())) {
      |                                 ^
src/phazor/phazor.c: In functionconnect_pulse’:
src/phazor/phazor.c:1593:27: warning: comparison of integer expressions of different signedness: ‘intandma_uint32’ {aka ‘unsigned int’} [-Wsign-compare]
 1593 |         for (int i = 0; i < playbackDeviceCount; ++i) {
      |                           ^
src/phazor/phazor.c: In functionwave_open’:
src/phazor/phazor.c:535:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  535 |     fread(b, 4, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:538:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  538 |     fread(&i, 4, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:542:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  542 |     fread(b, 4, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:584:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  584 |     fread(&i, 2, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:591:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  591 |     fread(&i, 2, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:599:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  599 |     fread(&i, 4, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:606:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  606 |     fread(&i, 2, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c: In functionload_next’:
src/phazor/phazor.c:1758:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
 1758 |     fread(peak, sizeof(peak), 1, fptr);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/phazor/phazor.c:62:
src/phazor/miniaudio/miniaudio.h: At top level:
src/phazor/miniaudio/miniaudio.h:18534:23: warning: ‘ma_timer_get_time_in_seconds’ defined but not used [-Wunused-function]
18534 |         static double ma_timer_get_time_in_seconds(ma_timer* pTimer)
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/miniaudio/miniaudio.h:18526:21: warning: ‘ma_timer_init’ defined but not used [-Wunused-function]
18526 |         static void ma_timer_init(ma_timer* pTimer)
      |                     ^~~~~~~~~~~~~
src/phazor/phazor.c: In functionf_write’:
src/phazor/phazor.c:903:33: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} andint’ [-Wsign-compare]
  903 |     if (frame->header.blocksize > (BUFF_SIZE - get_buff_fill())) {
      |                                 ^
src/phazor/phazor.c: In functionconnect_pulse’:
src/phazor/phazor.c:1593:27: warning: comparison of integer expressions of different signedness: ‘intandma_uint32’ {aka ‘unsigned int’} [-Wsign-compare]
 1593 |         for (int i = 0; i < playbackDeviceCount; ++i) {
      |                           ^
src/phazor/phazor.c: In functionwave_open’:
src/phazor/phazor.c:535:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  535 |     fread(b, 4, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:538:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  538 |     fread(&i, 4, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:542:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  542 |     fread(b, 4, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:584:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  584 |     fread(&i, 2, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:591:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  591 |     fread(&i, 2, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:599:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  599 |     fread(&i, 4, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c:606:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
  606 |     fread(&i, 2, 1, wave_file);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/phazor.c: In functionload_next’:
src/phazor/phazor.c:1758:5: warning: ignoring return value offreaddeclared with attributewarn_unused_result’ [-Wunused-result]
 1758 |     fread(peak, sizeof(peak), 1, fptr);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/phazor/phazor.c:62:
src/phazor/miniaudio/miniaudio.h: At top level:
src/phazor/miniaudio/miniaudio.h:18534:23: warning: ‘ma_timer_get_time_in_seconds’ defined but not used [-Wunused-function]
18534 |         static double ma_timer_get_time_in_seconds(ma_timer* pTimer)
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/phazor/miniaudio/miniaudio.h:18526:21: warning: ‘ma_timer_init’ defined but not used [-Wunused-function]
18526 |         static void ma_timer_init(ma_timer* pTimer)
      |                     ^~~~~~~~~~~~~
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

1 participant