Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

disable visual studio warnings

$
0
0
We treat warnings as bugs and our policy is that our own code has to build cleanly, so I need to be able to spot warnings about my code. When I build our qt based project in visual studio 2010 I get literally 10s of thousands of warnings about Qt’s code. This is fine, I just need a way to disable them. Wrapping all of our include of qt headers with specific pragmas is not desirable. Any one know how to globably tun of warnings for just qt headers?? sample: 299>c:\qt\4.8.4\include\qtcore\../../src/corelib/tools/qlist.h(409): warning C4127: conditional expression is constant 299>c:\qt\4.8.4\include\qtcore\../../src/corelib/tools/qlist.h(430): warning C4127: conditional expression is constant 299>          c:\qt\4.8.4\include\qtcore\../../src/corelib/tools/qlist.h(429) : while compiling class template member function 'void QList<T>::node_destruct(QList<T>::Node *,QList<T>::Node *)' 299>          with 299>          [ 299>              T=QList<QVariant> 299>          ] 299>          c:\qt\4.8.4\include\qtcore\../../src/corelib/tools/qlist.h(707) : while compiling class template member function 'void QList<T>::detach_helper(int)' 299>          with 299>          [ 299>              T=QList<QVariant> 299>          ] 299>          c:\qt\4.8.4\include\qtcore\../../src/corelib/tools/qlist.h(730) : while compiling class template member function 'QList<T>::~QList(void)' 299>          with 299>          [ 299>              T=QList<QVariant> 299>          ] 299>          c:\qt\4.8.4\include\qtcore\../../src/corelib/kernel/qmetatype.h(196) : see reference to function template instantiation 'void *qMetaTypeConstructHelper<T>(const T *)' being compiled 299>          with 299>          [ 299>              T=QList<QList<QVariant>> 299>          ] 299>          c:\users\burlen\paraview\next\paraview\qt\core\pqSMAdaptor.h(47) : see reference to function template instantiation 'int qRegisterMetaType<QList<T>>(const char *,QList<T> *)' being compiled 299>          with 299>          [ 299>              T=QList<QVariant> 299>          ] [code wrappings added see [qt-project.org] , koahnig]

Viewing all articles
Browse latest Browse all 18427

Trending Articles