warnings

[Objective-C] warning: passing argument 1 of 'CGPathMoveToPoint' discards qualifiers from pointer target type

I keep getting this warning warning: passing argument 1 of 'CGPathMoveToPoint' discards qualifiers from pointer target type I am calling the function like this const CGAffineTransform m = CGAffineTransformIdentity; CGPathMoveToPoint(path, &m , nextPos.x, nextPos.y); I already tried CGPathMoveToPoint(path, NULL , nextPos.x, nextP...

Suppress exhaustive matching warning in OCaml

Hello, I'm having a problem in fixing a warning that OCaml compiler gives to me. Basically I'm parsing an expression that can be composed by Bool, Int and Float. I have a symbol table that tracks all the symbols declared with their type: type ast_type = Bool | Int | Float and variables = (string, int*ast_type) Hashtbl.t; where int i...

Delphi 6: Force compiler error on missing abstract class methods?

I'm using Delphi Pro 6. Right now, the only way to know if a class is missing a base class abstract method is to wait for the IDE to emit a "constructing instance of {derived class} containing abstract method {base class.abstract method name}" warning or to wait for a runtime Abstract Error method when an attempt to call the missing met...

two-stage rotation animation alert in console UIImagePickerController

In my UIViewController class, I created an UIImagePickerController like this : -(BOOL)startCameraPickerFromViewController{ if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) return NO; UIImagePickerController* picker = [[UIImagePickerController alloc] init]; picker.sourceType = UII...

accessing C# base class in iterator causes ReSharper warning

I have two classes, GenericList and SpecificList, where SpecificList inherits from GenericList. GenericList implements IEnumerable<GenericItem> and SpecificList implements IEnumerable<SpecificItem>. SpecificItem inherits from GenericItem. I have to implement GetEnumerator in both GenericList and SpecificList since they implement IEnum...

Disabling a specific warning in a specific line in XCode

I'm writing an iPhone app against the Base 4.0 SDK, but I'm targeting OS 3.1.3 so OS 3 users can use the app. I call: [[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES]; which is deprecated in iOS 4.0. I'm aware of this, and have measures in place to call the newer "withAnimation" version if we are running under ...

Geting "Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43d98340" in Android

Hi Guys, When I am going from one intent to another intent, I am getting this warning : "Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43d98340" and the view stays on the old intent. the code is : btnCatalog.setOnClickListener(new OnClickListener() { private ProgressDialog ...

How to get rid of "C++ exception specification ignored" warning

Hi, I recently got a dll that has been implemented by others. I have to use it in my application. In the header file of their class they have the function declaration void func1() throw (CCustomException); Now when i compile it am getting the warning, C++ exception specification ignored except to indicate a function is not _...

What is the register_globals warning message that is appearing?

I have one of my pages redirect to a page called customproofs.php. When it redirects to that page, the following Warning message appears: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a...

Warning from XStream, cannot find itemFieldName in XStreamImplicit

I'm trying to track down th source of a warning: warning: Cannot find annotation method 'itemFieldName()' in type 'com.thoughtworks.xstream.annotations.XStreamImplicit' The relevant code is: @XStreamAlias("things") @XStreamImplicit(itemFieldName = "things") private List<Thing> things; Looking at the XStream JAR I see: @java.lang.a...

ignoring WARNINGs in Django

Hay, my model is a through a "Data truncated for column 'password' at row 1" warning. This is fine, the data does get truncated, but it get fills back in by a different function later on. How can i get django a ignore this warning? I think it's called on the Save() method. ...

Invalid recever type int

Hi! I cant sem to find what would be the problem here... NSArray *oneMove; oneMove = [[bestMoves objectAtIndex:i] componentsSeparatedByString:@","]; int from, to; int temp = [[oneMove objectAtIndex:0] intValue]; from = [temp intValue]/100; //"Invalid receiver type int" to = [temp intValue]%100; //"Invalid receiver type int" NSLog(@...

UIImagePickerController does not dismiss after memory warning

Hi there, I have a UIImagePickerController as a synthesized property of my view controller. In general it works fine (takeing/picking photos, calling back, etc). However, when I receive a memory warning (didReceiveMemoryWarning is called on the view controller), although the app seems to handle it gracefully (viewDidLoad gets called fo...

Missing little red "x" in Eclipse explorer and problems view for Java source with compile errors?

The little red 'x' on my Java class files in the project explorer (or package explorer) are missing. They were there...now they are gone. This has happened before and usually a project clean, rebuild will do the trick. Also I unchecked the box that says abort build if build path error occurs. Any ideas? Edit: I am using the Maven M...

New ios4 Format not a string literal...

Hi all ! I need to create a string using results of a textfield. I use : > NSString *username = [NSString stringWithFormat:myTextField.txt]; but i get the warning : Format not a string literal and no format arguments. Everything works but like i use more than 10 times this syntax i would like to erase this warning. thanks...

Portable code for deprecated userInfo dictionary key (Cocoa)

In Mac OSX 10.6, the NSErrorFailingURLStringKey userInfo dictionary key is deprecated in favor of NSURLErrorFailingURLStringErrorKey. I am trying to write my program to be portable to both Mac OSX 10.5 and 10.6. For the time being, I'm just using the old key--but my compiler is giving me annoying deprecated warnings. // The following ca...

Warning: Cannot modify header information - headers already sent...

Grr. I have that problem AGAIN. I really have no idea what the problem is :|, I don't know how to explain so here's my code: <?php include("config.php"); $eUsername = $_POST['username']; $ePassword = $_POST['password']; $con = mysql_connect("localhost","MY_USERNAME","MY_PASSWORD"); if (!$con) { die('Could not connect: ' . mys...

How to resolve "static method ___ should be accessed in a static way" warnings

I'm going through the book Just Java 2 but am evidently missing something basic. These are two separate projects. I've generated a JAR for the second and added it to the first's build path. The correct areas are printed but the compiler generates these warnings. How would these be resolved? // -------------------------------------------...

'Card' may not respond to '-fadeAway'

I have a Card class subclassed from UIView and a Deck class from NSObject. Card has a few integer properties on top of the inherited UIView ones and Deck has an NSMutableArray for holding some cards. After generating a deck of cards, I want to display a randomly selected card (by adding it to the superview). Before I do, I check to se...

Is there any way I can make g++ only emit warnings pertaining to my files?

I like to compile my code with -Wall, and sometimes even -pedantic. It's partly a style thing, and partly the fact that it does occasionally emit very, very useful warnings (such as using = rather than ==). However, the writers of some of my headers are clearly not such sticklers. Compiling with either of the two warning levels yields ...