[KPhotoAlbum] Warnings

Tobias Leupold tobias.leupold at web.de
Tue Jan 19 19:44:14 GMT 2016


Hi all again,

I also wanted to ask this: The KPA wiki says that the KPA build process is 
"warning free zone". Actually, we currently have two warnings:


One appears during cmake (I don't know since when, it's new ...):

CMake Warning (dev) at /usr/lib64/automoc4/Automoc4Config.cmake:179 
(get_directory_property):
  Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
  property.  Run "cmake --help-policy CMP0059" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  /usr/lib64/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/apps/cmake/modules/KDE4Macros.cmake:1003 
(_automoc4_kde4_pre_target_handling)
  CMakeLists.txt:451 (kde4_add_executable)
This warning is for project developers.  Use -Wno-dev to suppress it.


The other one during building:

/home/tobias/tmp/1/kphotoalbum-4.7/RemoteControl/RemoteCommand.cpp: In 
function 'QDataStream& operator>>(QDataStream&, RemoteControl::Category&)':
/home/tobias/tmp/1/kphotoalbum-4.7/RemoteControl/RemoteCommand.cpp:125:68: 
warning: dereferencing type-punned pointer will break strict-aliasing rules [-
Wstrict-aliasing]
     stream >> category.name >> category.enabled >> (int&) category.viewType;
                                                                    ^

I don't know how to fix neither the first, nor the second one. Does anybody?! 
:-)

Tobias



More information about the Kphotoalbum mailing list