suppress-warnings

How can I disable a specific warning for a C# project in VS2012?

倖福魔咒の 提交于 2019-11-28 07:01:44
问题 I am trying to generate partial XML documentation during my build process for a C# project in VS2012. When I check the XML documentation file option in Project->Properties->Build, I get a build warning for each public member that lacks documentation. Since we compile with warnings as errors, this blocks the build. This question suggests getting past this by disabling certain warnings, but I can't figure out how to do that in VS2012! The MSFT documentation here only goes up to VS2010 and only

Java 6: Unsupported @SuppressWarnings(“rawtypes”) warning

我的梦境 提交于 2019-11-28 06:43:47
I moved to a new machine which has the latest Sun's Java compiler and noticed some warnings in the existing Java 6 code. The Eclipse IDE, suggested that I annotate the assignment with: @SuppressWarnings("rawtypes") For example: class Foo<T> { ... } ... @SuppressWarnings("rawtypes") Foo foo = new Foo(); When I moved back to the machine with the older compiler (JDK 1.6.0_20), I have noticed that this older compiler now warns about the suppression of "rawtypes" warnings, claiming that this suppression is unsupported and proposing to replace it with @SuppressWarnings("unchecked"). Also, there were

Ignore warnings in external modules when using CMake

旧时模样 提交于 2019-11-28 05:06:32
问题 I am using CMake GUI (no version) with CMake 3.6.1. I am using an external module with add_subdirectory that shows me some warnings that I do not like (because of the annoying pollution): CMake Warning (dev) at D:/Sources/.../external/g3log/latest/Build.cmake:11 (IF): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run "cmake --help-policy CMP0054" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

How to suppress Pandas Future warning ?

萝らか妹 提交于 2019-11-28 03:44:59
When I run the program, Pandas gives 'Future warning' like below every time. D:\Python\lib\site-packages\pandas\core\frame.py:3581: FutureWarning: rename with inplace=True will return None from pandas 0.11 onward " from pandas 0.11 onward", FutureWarning) I got the msg, but I just want to stop Pandas showing such msg again and again, is there any buildin parameter that I can set to let Pandas not pop up the 'Future warning' ? bdiamante Found this on github ... import warnings warnings.simplefilter(action='ignore', category=FutureWarning) @bdiamante's answer may only partially help you. If you

Suppress warning “QApplication was not created in main() thread”

谁说我不能喝 提交于 2019-11-28 03:26:26
问题 I've created a Qt-based network library for use with applications that are not running a Qt event loop, and which are not necessarily otherwise Qt applications. This was made possible by creating a QCoreApplication instance in a thread per the answer from Is it possible to create local event loops without calling QApplication::exec()? This works perfectly, but it makes Qt upset (I presume it's worried that I'll try to manipulate a GUI outside of the main thread which wouldn't work, but I'm

disable warning c4702 seems not work for VS 2012

寵の児 提交于 2019-11-28 02:52:54
问题 I have some code for testing that i added upfront the rest of the code, so the rest would never be reached in the test. Since i have warning level 4 set, this results in an c4702: unreachable-code warning I tried disabling like this: //do something return 0; /*-------------------------------------------------------------------------*/ #pragma warning(disable: 4702) //real code but the compiler still moans. And because i have set to treat every warning as an error, this won't compile... I am

TYPO3: how to supress deprecated warnings?

柔情痞子 提交于 2019-11-28 01:28:29
问题 I tried modifying the php.ini file (error_reporting = E_ALL & ~E_DEPRECATED), but with no result. There's an older TYPO3 project which I would like to examine, and all these warnings are really annoying.. Thanks in advance. 回答1: I'm not sure if this will work on your version of Typo3 but try setting the following options in the typo3conf/localconf.php or via the Install Tool. $TYPO3_CONF_VARS['SYS']['displayErrors'] = '0'; // or '-1' to see other errors $TYPO3_CONF_VARS['SYS'][

suppress messages displayed by “print” instead of “message” or “warning” in R

浪尽此生 提交于 2019-11-27 20:08:34
Many R packages I work with involve functions that give all their messages and warnings through commands to print() calls rather than commands to message() or warning(). I'd like to be able to silence these functions progress indicators, etc, but the standard supressWarnings() or supressMessages doesn't do it. Is there a way I can just suppressPrint? For example: silly_developer_function <- function(x){ print("Thanks for using my function!!") if(is(x, "numeric")) print("warning, x should be a character") x } I'd like to have a simple function suppressPrint() that I could wrap around a call to

How do you tell Valgrind to completely suppress a particular .so file?

爱⌒轻易说出口 提交于 2019-11-27 19:20:06
I'm trying to use Valgrind on a program that I'm working on, but Valgrind generates a bunch of errors for one of the libraries that I'm using. I'd like to be able to tell it to suppress all errors which involve that library. The closest rule that I can come up with for the suppression file is { rule name Memcheck:Cond ... obj:/path/to/library/thelibrary.so } This doesn't entirely do the job, however. I have to create one of these for every suppression type that comes up (Cond, Value4, Param, etc), and it seems to still miss some errors which have the library in the stack trace. Is there a way

How to suppress Pandas Future warning ?

£可爱£侵袭症+ 提交于 2019-11-27 19:14:54
问题 When I run the program, Pandas gives 'Future warning' like below every time. D:\Python\lib\site-packages\pandas\core\frame.py:3581: FutureWarning: rename with inplace=True will return None from pandas 0.11 onward " from pandas 0.11 onward", FutureWarning) I got the msg, but I just want to stop Pandas showing such msg again and again, is there any buildin parameter that I can set to let Pandas not pop up the 'Future warning' ? 回答1: Found this on github... import warnings warnings.simplefilter