Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

fix compile warnings #2

Closed
tpoisonooo opened this issue May 29, 2020 · 2 comments
Closed

fix compile warnings #2

tpoisonooo opened this issue May 29, 2020 · 2 comments

Comments

@tpoisonooo
Copy link
Contributor

DEPRECATED("use Mat(DeviceType, MatType, DimsVector, void*) instead");

linux 交叉编译 android 会报大量的 warning.

/GitProjects/TNN/include/tnn/utils/blob_converter.h:54:5: warning: declaration does not declare anything [-Wmissing-declarations]
    __attribute__((deprecated ("use Mat(DeviceType, MatType, DimsVector, void*) instead")));
    ^

这个是想做个#error还是只是想单纯的__attribute__((deprecated)) 一个接口?

@darrenyao87
Copy link
Collaborator

Mat的接口是开源前刚定好,担心评测出问题,没有统一到新接口。正式开源前会统一去掉旧接口

@neiltian-tencent
Copy link
Collaborator

这个是deprecated用错提示warning,3e27d76 fix。

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

No branches or pull requests

3 participants