lh3 / seqtk

Toolkit for processing sequences in FASTA/Q formats
MIT License
1.35k stars 311 forks source link

what does the meanning of '-Wno-unused-function' ? #137

Closed lidd77 closed 5 years ago

lidd77 commented 5 years ago

HI, Heng, I found this parameter name '-Wno-unused-function' when I checked the seqtk Makefile, but there is no any informatinon about this on GCC help page via 'man gcc', so what does '-Wno-unused-function' ? the right typing is '-Wunused-function' ? BTW, the gcc version I use is 4.8 .

@lh3

yzhernand commented 5 years ago

Specific warnings can be turned on with an option like '-Wwarning-name' or off with '-Wno-warning-name' if gcc emits 'warning-name' warnings by default. In this case, prefixing 'unused-function' with 'no-' turns off gcc warnings about unused functions. The 'no-' behavior is documented in the man page, but you won't find the exact name of the negated option if you search for it.

Edit From the GCC man page:

You can request many specific warnings with options beginning with -W, for example -Wimplicit to request warnings on implicit declarations. Each of these specific warning options also has a negative form beginning -Wno- to turn off warnings; for example, -Wno-implicit. This manual lists only one of the two forms, whichever is not the default. For further language-specific options also refer to C++ Dialect Options and Objective-C and Objective-C++ Dialect Options.

lidd77 commented 5 years ago

Got it , thanks @yzhernand

yzhernand commented 5 years ago

@lidd77 if you consider this issue to be resolved, you should consider closing it