Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Contributor
Posts: 11
Registered: ‎08-28-2012
My Device: 9800
My Carrier: --
Accepted Solution

compiler options

Hi,

is there a way to customize compiler options? Namely, I would like to disable all compiler warnings. I can't find a way to do that.

 

Thanks for help.

Retired
Posts: 35
Registered: ‎08-01-2012
My Device: BB10 alpha-BB10 developer
My Carrier: T-Mobile

Re: compiler options

you can use "-w" option for qcc

 

see

 

https://developer.blackberry.com/native/reference/com.qnx.doc.neutrino.utilities/topic/q/qcc.html

 

 

If it is a cascades c++ project, you directly change the "warn_on" to be "warn_off" for the CONFIG in the QT project file.

 

for example

 

change 

 

CONFIG += qt warn_on debug_and_release cascades

 

to be

 

CONFIG += qt warn_off debug_and_release cascades