From kde-cygwin Sun Jan 09 12:18:32 2005 From: =?ISO-8859-1?Q?Peter_K=FCmmel?= Date: Sun, 09 Jan 2005 12:18:32 +0000 To: kde-cygwin Subject: Defaul-NULL pointer Error Message-Id: <41E12118.6010902 () gmx ! net> X-MARC-Message: https://marc.info/?l=kde-cygwin&m=110527315110685 Hello, yesterday I've fixed a error in QPrinter::setup(QWidget* parent = 0) which originates in usage of a default-NULL pointer. Maybe there are more such bugs in our code. The structure of the bug looks like the following example code: struct TT{ int d; }; int ttt( TT* t = 0){ return t->d; } int main( int argc, char** argv ) { int i = ttt(); // <- Segmentation fault return 0; } I think this bug could be found by a compiler. Does anybody know a compiler warning or compiler which detects such bugs? (g++ -Wall does not help) Peter _______________________________________________ kde-cygwin mailing list kde-cygwin@kde.org https://mail.kde.org/mailman/listinfo/kde-cygwin