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

GitHub actions not reporting warnings #420

Open
simsong opened this issue Apr 29, 2023 · 0 comments
Open

GitHub actions not reporting warnings #420

simsong opened this issue Apr 29, 2023 · 0 comments
Labels
SRE Software Reliability Engineering

Comments

@simsong
Copy link
Owner

simsong commented Apr 29, 2023

See https://github.com/simsong/bulk_extractor/actions/runs/4715021826/jobs/8361732786
Why isn't this warning causing the Action to fail?

In file included from be20_api/scanner_set.cpp:30:
be20_api/machine_stats.h: In static member function ‘static float machine_stats::get_cpu_percentage()’:
be20_api/machine_stats.h:37:14: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   37 |         fgets(buf,sizeof(buf),f);           /* read the first line */
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
be20_api/machine_stats.h:38:14: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   38 |         fgets(buf,sizeof(buf),f);           /* read the second line */
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
@simsong simsong added the SRE Software Reliability Engineering label Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SRE Software Reliability Engineering
Projects
None yet
Development

No branches or pull requests

1 participant