What is the warning level you use while compiling QT projects?
When I compiled with W4, I'm getting a lot of warnings such as:
C4127: conditional expression is constant
Should I compile at W3, or find other ways to handle warnings at W4, such as: adding a new header file and using pragma's(mentioned here C++ Coding Standards: 101 Rul...
I have a Core Data entity whose header file looks like this:
@interface MyEntity : NSManagedObject
{
}
@property (nonatomic, retain) NSNumber * index;
@end
And it's implementation file looks like this:
@implementation MyEntity
@dynamic index;
@end
Now, I have a piece of code that looks like this:
NSArray* selectedObects = [myE...
Hello there. I have a set of code, which mimics a basic library cataloging system. There is a base class named items, in which the the general id,title and year variables are defined and 3 other derived classes (DVD,Book and CD).
Base [Items]
Derived [DVD,Book,CD].
The programs runs, however I get the following warnings, I'm not sure ...
GtkWidget *textview;
...
textview = gtk_text_view_new ();
...
buffer = gtk_text_view_get_buffer (textview);
At the last line I pasted I got this warning:
warning C4133: 'function' : incompatible types - from 'GtkWidget *' to 'GtkTextView *'
How can I fix that?
...
Installshield 2009 Premier Basic MSI:
When I uninstall there is a Message Box saying that explorer has to be closed:
[Title] My-Product-Name
[List] Explorer
[radio button 1, Selected by default] Automatically close applications and attempt to restart them after setup is complete
[radio button 2] Do not close applications. (A Reboot will...
I am working on a project, in which I am changing themes, by doing this there are some warnings being issued, and I am wondering how to prevent them from beeing issued, or reaching the debug output.
`System.Windows.ResourceDictionary Warning: 9 : Resource not found`;
It happens when I do
Application.Current.Resources.MergedDictionari...
hi here is a short version of function which im using on daily basis, it works fine except it throws a warning 'No data - zero rows fetched, selected, or processed (errno. 1329)'. and since i start using this function with django there cant be any warning or error because it stop the whole process
i have read that there is no warning fi...
I'm trying to get Mysql to log all warnings to the log file. I'm running stored procedures, and I want to get at the warnings they generate.
...
I'm using the OpenCV library and one of its header files, cxoperations.hpp, generates "warning C4793: '`anonymous namespace'::CV_XADD' : function compiled as native", if my C++ project is compiled with CLR support. I can prevent the warning by surrounding the OpenCV header include like this:
#pragma managed(push,off)
#include <cv.h>
#pr...
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 are being used, but only by the data binding system. Has anyone else encountered this annoyance and is there a way to help Resharper realize that these properties are...
I am using Interop.TaskScheduler.dll in a C# Windows Application. - NOTE: This is the evolved task scheduler from Server 2008/Vista/Win7 not the one from before.
I've managed to set it up and it works fine. However, the following warning remains and I could not figure out why.
Has any of you seen this before? Is there a way to get rid...
I want to build a regex that matches PHP-style error messages in HTML source code.
Does anybody know of one that exists or how I can create a list of possible PHP error outputs?
...
Hello, I've got some problem with my function and don't know how to solve this problem, This is my code:
ListResult result=listFind(currentLines, compareBasicLines, &linePrototype); <-here problem
compareBasicLines pointer to function
int compareBasicLines(ptrLine line1, ptrLine line2){
COMPARE_NUMBER_STRINGS(line1, line2);
}
...
I tried to catch a carp-warning:
carp "$start is > $end" if (warnings::enabled()); )
with eval {} but it didn't work, so I looked in the eval documentation and I discovered, that eval catches only syntax-errors, run-time-errors or executed die-statements.
How could I catch a carp warning?
#!/usr/bin/env perl
use warnings;
use str...
I'm getting these two warnings (with GCC 4.2 on MacOSX):
/Users/az/Programmierung/openlierox/build/Xcode/../../src/main.cpp:154:0 /Users/az/Programmierung/openlierox/build/Xcode/../../src/main.cpp:154: warning: 'startMainLockDetector()::MainLockDetector' declared with greater visibility than the type of its field 'startMainLockDetector(...
Hi there, I'm working on an container class template (for int,bool,strings etc), and I've been stuck with this error
cont.h:56: error: expected initializer before '&' token
for this section
template <typename T>
const Container & Container<T>::operator=(const Container<T> & rightCont){
what exactly have I done wrong there?.
Also n...
Hello there, I'm having some trouble with this warning message, it is implemented within a template container class
int k = 0, l = 0;
for ( k =(index+1), l=0; k < sizeC, l < (sizeC-index); k++,l++){
elements[k] = arryCpy[l];
}
delete[] arryCpy;
this is the warning i get
cont.h: In member function `void Container<T...
I have a number of C source files(both .c and .h files). header files contains a number of functions. Out of those functions, only partially are used in a source .C file.Suppose a.h,b.h are header files and a.c and b.c are .c files. a.h is included in a.c. But only a number of functions those are in a. h are used and rest are not used...
I've a question for a warning message that i get.
For this line,using qsort library function:
qsort(catalog, MAX ,sizeof catalog, struct_cmp_by_amount);
I get this warning:
warning: passing argument 4 of ‘qsort’
makes pointer from integer without a
cast
EDIT:
struct_cmp_by_amount is the following function on the program....
int * ref () {
int tmp = 100;
return &tmp;
}
int main () {
int * a = ref();
cout << *a << endl;
}
I know the function ref () is allocated stack space. It will get destroyed as soon as the function exits. So the complier will give warning information.
But my question is why the returning result is still correct.
...