Ticket #69832: patch-clang16-fix.diff

File patch-clang16-fix.diff, 870 bytes (added by RJVB (René Bertin), 3 weeks ago)

This might do the trick (it does for GCC with -Wconversion)

  • phonon/backendinterface.h

    diff --git phonon/backendinterface.h b/phonon/backendinterface.h
    index 1f511eb3..50fcb669 100644
    class BackendInterface 
    176176        /**
    177177         * Classes that the createObject function has to handle.
    178178         */
    179         enum Class {
     179        enum Class : unsigned {
    180180            /**
    181181             * Request to return a %MediaObject object.
    182182             */
  • phonon/objectdescription.h

    diff --git phonon/objectdescription.h b/phonon/objectdescription.h
    index f1d6c009..68072617 100644
    namespace Phonon 
    4343     *
    4444     * \ingroup Backend
    4545     */
    46     enum ObjectDescriptionType
     46    enum ObjectDescriptionType : unsigned
    4747    {
    4848        /**
    4949         * Audio output devices. This can be soundcards (with different drivers), soundservers or