tagged [warnings]

strange warning about ExtensionAttribute

strange warning about ExtensionAttribute I'm getting a strange warning: > The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias...

24 May at 23:6

PHP Warning Permission denied (13) on session_start()

PHP Warning Permission denied (13) on session_start() I'm getting the following error: The problem doesn't happen all the time, but comes and goe

24 Jan at 23:2

Disable all gcc warnings

Disable all gcc warnings I'm working on a project that will read compiler error messages of a particular variety and do useful things with them. The sample codebase I'm testing this on (a random open-...

21 Sep at 03:6

Compiler warning - suggest parentheses around assignment used as truth value

Compiler warning - suggest parentheses around assignment used as truth value When I try to compile the piece of code below, I get this warning: `warning: suggest parentheses around assignment used as ...

How can I compile without warnings being treated as errors?

How can I compile without warnings being treated as errors? The problem is that the same code that compiles well on Windows, is unable to compile on [Ubuntu](https://en.wikipedia.org/wiki/Ubuntu_%28op...

7 Aug at 19:46

warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 Every time I run this command `rails server`: > warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 I sea...

Illegal string offset Warning PHP

Illegal string offset Warning PHP I get a strange PHP error after updating my php version to 5.4.0-3. I have this array: When I try to access it like this I get strange warnings ``` print $memcachedCo...

23 Aug at 14:44

Suppress "Member is never assigned to" warning in C#

Suppress "Member is never assigned to" warning in C# I have the following code: using ReactiveUI INPC support. The compiler is always warning me that `Trochoid` is never assigned to and will always be...

How to disable GCC warnings for a few lines of code

How to disable GCC warnings for a few lines of code In Visual C++, it's possible to use [#pragma warning (disable: ...)](https://msdn.microsoft.com/en-us/library/2c8f766e.aspx). Also I found that in G...

15 Nov at 22:41

Strange resource dictionary warnings appear in output window even when the WPF trace settings are turned off

Strange resource dictionary warnings appear in output window even when the WPF trace settings are turned off I am using Visual studio 2011 beta with the april 2012 update installed .I have my Debuggin...

31 May at 09:51

Objective-C implicit conversion loses integer precision 'NSUInteger' (aka 'unsigned long') to 'int' warning

Objective-C implicit conversion loses integer precision 'NSUInteger' (aka 'unsigned long') to 'int' warning I'm working through some exercises and have got a warning that states: > ``` #import int mai...

How to disable Python warnings?

How to disable Python warnings? I am working with code that throws a lot of (for me at the moment) useless warnings using the [warnings](https://docs.python.org/3/library/warnings.html) library. Readi...

22 Jan at 02:50

How to suppress Pandas Future warning ?

How to suppress Pandas Future warning ? When I run the program, Pandas gives 'Future warning' like below every time. I got the msg, but I just want to stop Pandas showing such msg again and again, is ...

"Delegate subtraction has unpredictable result" in ReSharper/C#?

"Delegate subtraction has unpredictable result" in ReSharper/C#? When using `myDelegate -= eventHandler` ReSharper (version 6) issues: > Delegate subtraction has unpredictable result The rational behi...

C#: Is pragma warning restore needed?

C#: Is pragma warning restore needed? From [msdn](http://msdn.microsoft.com/en-us/library/441722ys(VS.80).aspx) I get this: In the examples, both `disable` and `restore` are used. Is it necessary to `...

28 Jul at 17:36

Disable single warning error

Disable single warning error Is there a way to disable just a single warning line in a cpp file with visual studio? For example, if I catch an exception and don't handle it, I get error 4101 (unrefere...

2 Sep at 19:31

Warning: X may be used uninitialized in this function

Warning: X may be used uninitialized in this function I am writing a custom "vector" struct. I do not understand why I'm getting a `Warning: "one" may be used uninitialized` here. This is my vector.h ...

31 May at 17:31

NoWarn not working in DNX

NoWarn not working in DNX In my test project, I've got private fields that are not assigned to in the code, but are assigned with reflection. When compiling I get warnings like: > Warning CS0649 Fiel...

25 Jun at 06:17

What's wrong with defining operator == but not defining Equals() or GetHashCode()?

What's wrong with defining operator == but not defining Equals() or GetHashCode()? For the code below Why does the compiler give me these warnings? What's wrong with not defining the

28 May at 21:59

Disable/suppress warning CS0649 in C# for a specific field of class

Disable/suppress warning CS0649 in C# for a specific field of class I have some fields in a C# class which I initialize using reflection. The compiler shows CS0649 warning for them: > Field `foo' is n...

29 Jul at 07:50

Use new keyword if hiding was intended

Use new keyword if hiding was intended I have the following snippet of code that's generating the "Use new keyword if hiding was intended" warning in VS2008: The `Foo()` function in the base class is ...

17 Jan at 16:20

Why is it bad to use an iteration variable in a lambda expression

Why is it bad to use an iteration variable in a lambda expression I was just writing some quick code and noticed this complier error > Using the iteration variable in a lambda expression may have unex...

18 Oct at 03:4

ReSharper warnings with MVVM

ReSharper warnings with MVVM As I implement the MVVM pattern with WPF, I'm finding that ReSharper is often warning me that certain properties are never used in my ViewModels. The problem is that they ...

19 Nov at 00:46

Why is no warning given for this unused variable?

Why is no warning given for this unused variable? When compiling the following program in VS2010, VS2008 or MonoDevelop on Windows, I get warning [CS0219](http://msdn.microsoft.com/en-us/library/4kycw...

18 May at 01:20

Globally suppress c# compiler warnings

Globally suppress c# compiler warnings In my app I have a fair number of entities which have fields which are getting their values set via reflection. (In this case NHibernate is setting them). I'd li...

4 Mar at 22:8