相关文章推荐

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

#pragma mark is used througout the codebase for XCode .

They should be removed or ignored when compiling with gcc.

/home/bart/src/maplibre-gl-native/src/mbgl/map/transform.cpp:46: warning: ignoring ‘#pragma mark ’ [-Wunknown-pragmas]
   46 | #pragma mark - Map View
/home/bart/src/maplibre-gl-native/src/mbgl/map/transform.cpp:68: warning: ignoring ‘#pragma mark ’ [-Wunknown-pragmas]
   68 | #pragma mark - Camera
          

We can change them into comments.

https://www.avanderlee.com/xcode/xcode-mark-line-comment/

But I don't think adding/keeping IDE specific comments or #pragmas to the core is a good idea.

But I don't think adding/keeping IDE specific comments or #pragmas to the core is a good idea.

Not sure I agree with that. I think the most commonly used IDEs could be supported, as long as they do not cause issues in general. So we should remove the pragmas, but keeping comments would be useful.

 
推荐文章