pod spec lint
not validating -Wno-*
compiler flags
#2210
Labels
t3:discussion
These are issues that can be non-issues, and encompass best practices, or plans for the future.
Referring to this Twitter conversation and this screenshot:
In this case not preventing the warning would result in ~400 warnings for the end user. My choices were using the warning or putting every method in YOLOKit into a separate category, which was doable, but would make adding new methods in the future tedious, and something I wanted to avoid. The warning in this case was irrelevant for the library itself, and I only wanted the warning to apply when compiling YOLOKit itself, not outside of it.
In the end I worked around it with a clang pragma which I then include from every
.m
.IMO as long as the warning flags don't propagate to the main project, CocoaPods could make this acceptable but maybe continue to refuse
-w
.The specific flag here is
-Wno-incomplete-implementation
and I applied it as I have a single category (YOLO) for the library, but I split all the implementations across many files in order to make every method its own module. Clang would then warn in every file that the implementations were not complete, but they were, just not in the compilation unit.The text was updated successfully, but these errors were encountered: