[Digikam-devel] [Bug 284720] New: build fails with error

Thomas Caswell tcaswell at gmail.com
Sat Oct 22 18:57:43 BST 2011


https://bugs.kde.org/show_bug.cgi?id=284720

           Summary: build fails with error
           Product: digikam
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Metadata
        AssignedTo: digikam-devel at kde.org
        ReportedBy: tcaswell at gmail.com


Version:           unspecified (using KDE 4.7.1) 
OS:                Linux

~/digikam-sc/core/libs/dmetadata/dmetadata.cpp: In static member function
‘static QString Digikam::DMetadata::valueToString(const QVariant&,
Digikam::MetadataInfo::Field)’:
~/digikam-sc/core/libs/dmetadata/dmetadata.cpp:2410:1: error: control reaches
end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as error


tcaswell at eowyn:~/other_source/digikam-sc$ g++ --version
g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1


It seems that the compiler does not agree that the default case will keep the
program from getting out of the switch statement without returning.  Adding the
default return after the switch allows the code compile

Reproducible: Always

Steps to Reproduce:
update to head of master branch

Actual Results:  
-

Expected Results:  
-

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Digikam-devel mailing list