warnings

PHP: Warning: array_merge_recursive(): recursion detected

I have a list of arrays (unknown amount), I need to merge all of them recursively. So what I did what create an array of all of those arrays and pass them into this function: function mergeMonth($array) { foreach($array as $date_string => $inner_array) { if(isset($temp_inner_array)) { $temp_inner_arr...

When is it OK to use an undefined variable in perl with warnings enabled?

With warnings enabled, perl usually prints Use of uninitialized value $foo if $foo is used in an expression and hasn't been assigned a value, but in some cases it's OK, and the variable is treated as false, 0, or '' without a warning. What are the cases where an uninitialized/undefined variable can be used without a warning? ...

Checkstyle warning when an incorrect class name is specified

Hello, I have a "checkstyle" ant task. Is there a way to flag a warning, when an incorrect class name is mentioned in "include" files. Thanks, Sandhya ...

Python: Print only the message on warnings

I'm issuing lots of warnings in a validator, and I'd like to suppress everything in stdout except the message that is supplied to warnings.warn(). I.e., now I see this: ./file.py:123: UserWarning: My looong warning message some Python code I'd like to see this: My looong warning message Edit 2: Overriding warnings.showwarning() tu...

Obtaining double value out of array, iphone

NSDecimalNumber *lat = [[NSDecimalNumber alloc]initWithDouble:sqlite3_column_double(selectStatement, 1)]; [latt addObject:lat]; [lat release]; CLLocationCoordinate2D annot; annot.latitude = [[latt objectAtIndex:k]doubleValue]; The above 2 codes shows the creation and retrieving of double valu...

How to stop Explorer giving Active X warning when loading website containing Jquery on USB stick

I've done a lot a looking for a solution, including trying to put in the Mark Of The Web, but when I put a plain HTML site on a USB and launch the index page I get a security warning that Active X is trying to activate. this does not happen when launching the page from our raid server the page in question does not have any javasc...

how to supress indivual warnings in C++?

First of all, sorry if this is an obvious question, but I'm rather new to C++. Also, this code is not originally mine, but I am trying to clean it up. I'm looking for a compiler independent way to surpress warnings (preferably) for a specific line. I've got the following code: int MPtag::state_next( int i, int s ){ #if NGRAMS==2 ...

send PHP warnings daily on email or how?

Hi there I'm developing a web-application using PHP which is on tests by some of my friends. What approach do you recommend me to use in order to know what warnings are they getting but without displaying them using ini_set('display_errors', 1); ? Also, the application will run in a intranet in which I'll not have access remotely. I w...

C++ - gcc - how to create my own custom compile warnings similar to printf() ?

howdy. apologies in advance if i use poor terminology. when i compile a C++ app under gdb and use printf() it gives me awesome warnings relating to the consistency of the format string and the arguments passed in. eg, this code: printf("%s %s", "foo"); results in a compiler warning "too few arguments for format", which is super-use...

What is the LaTeX warning about "moved marginpar"

I repeatedly get the LaTeX warning: LaTeX Warning: Marginpar on page x moved. What does this mean? Is that a problem? How can I fix the corresponding problem? ...

Why does my Perl program warn about an uninitialized value?

I've written a Perl script, below which generates a warning and I can't work out why. #!/usr/local/bin/perl -w $status = $ENV{ 'STATUS' }; if ( $status eq "" ) { $status = 0; } else { $status = 1; } It says "Use of uninitialized value in string eq at ./x.pl line 4." Line 4 is the "if ( $status eq "" )" line but the variable...

Delphi, how to avoid unicode warning message in D2009, D2010

In a sorting routine in Delphi 2007 I am using code like this: (txt[n] in ['0'..'9']) function ExtractNr(n: Integer; var txt: String): Int64; begin while (n <= Length(txt)) and (txt[n] in ['0'..'9']) do n:= n + 1; Result:= StrToInt64Def(Copy(txt, 1, (n - 1)), 0); Delete(txt, 1, (n - 1)); end; where txt is a string....

Warnings (or even info messages) instead of only errors in Django

Does the concept of severity exist in Django's form validation or is it only errors? Also, how about suppressing warnings/errors? ...

dynamic MenuContribution - Get a warning

Hi folks, I am using dynamic MenuContribution and get a warning that two of my referenced identifers "cannot be found". Even though the contribution works. These warnings bug me. I have a CompoundContributionItem implementation defined in one of my plugings. Basically it looks like this: public class ViewerHistoryMenuItems extends Com...

Visual Studio 2008 (C++): Why am I getting compiler warnings?

I am getting Visual Studio compiler warnings from third-party includes and my coworker is not. The following are true: We have checked out the exact same code, .vcproj files, and .sln files, with no local modifications. We are including the exact same third-party files. We are using the exact same version of Visual Studio. We have bot...

Is there a way to list NetBeans editor hints?

Does NetBeans have a way to show all the editor hints (like missing braces, unused imports, etc.) for a project? Ideally, they would show up in the Task List, but the warning icons in the project view would be fine too. Right now, the best I can do is to open each file and look at the color indicator next to the scrollbar. ...

warnings emitted during 'easy_install'

When I easy_install some python modules, warnings such as: <some module>: module references __file__ <some module>: module references __path__ <some module>: module MAY be using inspect.trace <some module>: module MAY be using inspect.getsourcefile sometimes get emitted. Where (what package / source file) do these messages come from...

How can I deal with the ICE60 warning in WiX?

Good Afternoon, I have created a WiX project that installs a bunch of different EXEs and DLLs. Unfortunatly when I build the project I receive the following warning for each one of them: ICE60: The file fileName is not a Font, and its version is not a companion file reference. It should have a language specified in the Langu...

Warnings in Java when casting to a generic type

I have some generic code which I cannot figure out how to legitimately prevent getting warnings from; I am using @SuppressWarnings("unchecked") for the moment, since it seems that casting a generic type can't be done without warnings. How can I get rid of the annotation? What I have is: public MyObject(SharedContext<Object> ctx) { ...

is it possible to resolve Plugin file not found on iPhone?

how can i fix this warning? warning: Unable to read symbols for "/XcodeBeta/Platforms/iPhoneOS.platform/DeviceSupport/3.1.2 (7D11)/Symbols/System/Library/Internet Plug-Ins/QuickTime Plugin.webplugin/QuickTime Plugin" (file not found). ...