imageeditor: function address instead of variable name evaluated

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

imageeditor: function address instead of variable name evaluated

Michael G. Hansen
Hi,

when compiling digikam master today I noticed this warning:

/c/temp/kde/trunk-src/digikam-sc/core/utilities/imageeditor/editor/editorwindow.cpp:
In member function 'bool Digikam::EditorWindow::startingSaveAs(const
KUrl&)':
/c/temp/kde/trunk-src/digikam-sc/core/utilities/imageeditor/editor/editorwindow.cpp:2442:
warning: the address of '__pid_t fork()' will always evaluate as 'true'

Looking at that function, I see that there is no variable named 'fork'
defined, hence the compiler warning that the address of 'fork()' will be
used instead. Could somebody with knowledge about this function please
have a look at it?

Thanks,

Michael
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: imageeditor: function address instead of variable name evaluated

Marcel Wiesweg

> Looking at that function, I see that there is no variable named 'fork'
> defined, hence the compiler warning that the address of 'fork()' will be
> used instead. Could somebody with knowledge about this function please
> have a look at it?

I must have forgot to push, but I committed the fix locally (replacing "fork" with true). Doesnt matter for the 2.0 release because the address of fork() is not null therefore the code works ;-)

Marcel
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel