Skip to content

Fix warning when building with -O3#247

Open
ranjeethmahankali wants to merge 1 commit into
tsoding:mainfrom
ranjeethmahankali:main
Open

Fix warning when building with -O3#247
ranjeethmahankali wants to merge 1 commit into
tsoding:mainfrom
ranjeethmahankali:main

Conversation

@ranjeethmahankali

Copy link
Copy Markdown
nob.h: In function ‘nob_read_entire_file’:
nob.h:1676:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1676 |     fread(sb->items + sb->count, m, 1, f);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Successfully merging this pull request may close these issues.

1 participant