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

            Bug ID: 520064
           Summary: error: no matching function for call to
                    'QString::arg(int, int, char, int)'
    Classification: Applications
           Product: kstars
      Version First 3.8.2
       Reported In:
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 192219
  --> https://bugs.kde.org/attachment.cgi?id=192219&action=edit
Patch fixing the build.

DESCRIPTION
When building kstars 3.8.2 on NetBSD 11.99.5/x86_64 using the pkgsrc
dependencies with gcc 14.3.0, the build fails.

STEPS TO REPRODUCE
See above

OBSERVED RESULT
```
/tmp/misc/kstars/work/kstars-3.8.1/kstars/skyobjects/mosaictiles.cpp: In member
function 'void MosaicTiles::draw(QPainter*)':
/tmp/misc/kstars/work/kstars-3.8.1/kstars/skyobjects/mosaictiles.cpp:538:39:
error: no matching function for call to 'QString::arg(int, int, char, int)'
  536 |                 painter->drawText(oneRect, Qt::AlignHCenter |
Qt::AlignBottom, QString("%1%2°")
      |                                                                        
       ~~~~~~~~~~~~~~~~
  537 |                                   .arg(tile->rotation >= 0.01 ? '+' :
tile->rotation <= -0.01 ? '-' : '~')
      |                                  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  538 |                                   .arg(abs(tile->rotation), 5, 'f',
2));
      |                                   ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

EXPECTED RESULT
Build succeeds.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): NetBSD
KDE Plasma Version:  n/a
KDE Frameworks Version:  n/a
Qt Version: 6.11.0

ADDITIONAL INFORMATION
The attached patch fixes the problem.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to