BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   -Xlint:deprecation (http://www.blackberryforums.com/showthread.php?t=198426)

subaru_sti 07-23-2009 09:47 PM

-Xlint:deprecation
 
Hello.

When I compile my project, I get the following warning message:

Recompile with -Xlint:deprecation for details.

I know this is just a warning message, but how do I recompile with -Xlint:deprecation?

Stephen

andreybutov 07-24-2009 09:33 PM

Right click on the project and select PROPERTIES.

Choose COMPILE from the tabs on the top of the dialog.

Check "Output source locations where deprecated APIs are used".

Click OK.

Save project.

Done.

:smile:

subaru_sti 07-24-2009 09:40 PM

Hmmm... Okay, so I did that and now I don't get the warning. What exactly did that do? I thought I would be able to see what was depricated.

Stephen

andreybutov 07-24-2009 09:46 PM

When you use a deprecated API, the compiler will tell you if that flag is set. If you don't use any deprecated APIs it won't. The warning simply told you that you never specified that you wanted to see deprecated APIs (even if you had them).


All times are GMT -5. The time now is 06:01 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.