Skip to content

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