/src/Multimedia/VideoEditors/kdenlive/master/src/bin/bin.cpp:5595:60: warning: ‘nonnull’ argument ‘this’ compared to NULL is actually forcing the this pointer onto a boolean...
So you are probably seeing this,
/src/Multimedia/VideoEditors/kdenlive/master/src/bin/bin.cpp: In member function ‘void Bin::requestTranscoding(const QString&, const QString&, int, bool, const QString&, const QString&)’:
/src/Multimedia/VideoEditors/kdenlive/master/src/bin/bin.cpp:5595:60: warning: ‘nonnull’ argument ‘this’ compared to NULL [-Wnonnull-compare]
5595 | m_transcodingDialog = new TranscodeSeek(false, this);
| ^
/src/Multimedia/VideoEditors/kdenlive/master/src/bin/bin.cpp: In member function ‘void Bin::requestSelectionTranscoding(bool)’:
/src/Multimedia/VideoEditors/kdenlive/master/src/bin/bin.cpp:5544:59: warning: ‘nonnull’ argument ‘this’ compared to NULL [-Wnonnull-compare]
5544 | m_transcodingDialog = new TranscodeSeek(true, this);
However.. it has nothing to do with comparing 'this' to NULL but about an attempt to force 'this' onto a boolean...
Seeing the constructor interface of TranscodeSeek in src/project/transcodeseek.h,
TranscodeSeek(bool onUserRequest, bool forceReplace, QWidget *parent = nullptr);
you can see that it is called with only two arguments while the third one, parent, is optional. Because of this the this pointer is forced onto the second boolean, forceReplace.
So just in case you may not be aware of this, I thought I could let you know.
Have a nice weekend, Ondrej
Edited by Julius Künzel