Skip to content

Conversation

@mhucka
Copy link
Collaborator

@mhucka mhucka commented Jan 2, 2026

On systems where there is no /proc/cpuinfo, you get an error message. We don't need to see it; we just need the result of the grep.

On systems where there is no /proc/cpuinfo, you get an error message. We
don't need to see it; we just need the result of the grep.
@mhucka mhucka marked this pull request as ready for review January 2, 2026 04:12
@github-actions github-actions bot added the Size: XS <10 lines changed label Jan 2, 2026
@mhucka mhucka requested review from fdmalone and pavoljuhas January 2, 2026 04:12
Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to be extra pedantic consider using the -s option instead (seems posix). Keeping it as is is OK too.

mhucka added 2 commits January 5, 2026 19:09
Per suggestion by Pavol in the review, using `grep -s` avoids the need
to redirect to `/dev/null` altogether.
@mhucka
Copy link
Collaborator Author

mhucka commented Jan 5, 2026

If we want to be extra pedantic consider using the -s option instead (seems posix). Keeping it as is is OK too.

You're right, and it does work on macOS too. I could have sworn I tried -s before and ran into a problem, but don't seem to have any problems now.

@mhucka mhucka enabled auto-merge January 5, 2026 19:11
@mhucka mhucka added this pull request to the merge queue Jan 5, 2026
Merged via the queue into quantumlib:main with commit df65da1 Jan 5, 2026
28 checks passed
@mhucka mhucka deleted the mh-silence-grep-warning branch January 5, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: XS <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants