Closed lidd77 closed 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.
Got it , thanks @yzhernand
@lidd77 if you consider this issue to be resolved, you should consider closing it
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