Skip to content

Prevent coprodis warning for .word#312

Open
will-v-pi wants to merge 1 commit intodevelopfrom
fix-clang-copro
Open

Prevent coprodis warning for .word#312
will-v-pi wants to merge 1 commit intodevelopfrom
fix-clang-copro

Conversation

@will-v-pi
Copy link
Copy Markdown
Contributor

Prevent coprodis warning for .word that happen to be coprocessor instructions

Didn't affect GCC as words are formatted as 8 hex chars instead of 4+4, but did affect clang as they're formatted the same as instructions

…ructions

Didn't affect GCC as words are formatted as 8 hex chars instead of 4+4, but did affect clang as they're formatted the same as instructions
Comment thread main.cpp
}
return pos - pos0;
};
auto check_for_word = [&](size_t pos) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

um this may read off the end of the line which isn't mull terminated... i would use string::compare ;-)

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.

2 participants