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

ld, nm: Silence on-by-default warnings #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tob2
Copy link
Contributor

@tob2 tob2 commented Nov 29, 2024

When compiling nvptx-tools with default settings, the following warnings are printed, which this commit silences:

nvptx-ld.cc:878:20 and nvptx-nm.cc:670:20:
In function ‘int main(int, char**)’:
warning: comparison of integer expressions of different signedness:
‘size_t’ {aka ‘long unsigned int’} and ‘off_t’ {aka ‘long int’}
[-Wsign-compare]

nvptx-nm.cc:386:14:
warning: unnecessary parentheses in declaration of ‘sorters’
[-Wparentheses]
nvptx-nm.cc:386:14: note: remove parentheses

nvptx-nm.cc:464:72:
In function ‘void display_rel_file(std::__cxx11::list<htab*>&,
const std::string&)’:
warning: unused parameter ‘name’ [-Wunused-parameter]

@tschwinge

When compiling nvptx-tools with default settings, the following warnings are
printed, which this commit silences:

nvptx-ld.cc:878:20 and nvptx-nm.cc:670:20:
   In function ‘int main(int, char**)’:
   warning: comparison of integer expressions of different signedness:
      ‘size_t’ {aka ‘long unsigned int’} and ‘off_t’ {aka ‘long int’}
      [-Wsign-compare]

nvptx-nm.cc:386:14:
   warning: unnecessary parentheses in declaration of ‘sorters’
     [-Wparentheses]
     nvptx-nm.cc:386:14: note: remove parentheses

nvptx-nm.cc:464:72:
   In function ‘void display_rel_file(std::__cxx11::list<htab*>&,
                                      const std::string&)’:
   warning: unused parameter ‘name’ [-Wunused-parameter]
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