https://bugs.documentfoundation.org/show_bug.cgi?id=100021

            Bug ID: 100021
           Summary: format argument issues in process.cxx and backtrace.c
           Product: LibreOffice
           Version: 5.1.3.2 rc
          Hardware: All
                OS: Solaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: framework
          Assignee: [email protected]
          Reporter: [email protected]

building 5.1.3.2 I noticed the following:
...
[build CXX] sal/osl/unx/time.cxx
/tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.3.2/sal/osl/unx/process.cxx:
In function 'oslProcessError osl_getProcessInfo(oslProcess, oslProcessData,
oslProcessInfo*)':
/tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.3.2/sal/osl/unx/process.cxx:1026:53:
warning: format '%u' expects argument of type 'unsigned int', but argument 4
has type 'pid_t {aka long int}' [-Wformat=]
         snprintf(name, sizeof(name), "/proc/%u", pid);
                                                     ^
[build CXX] sal/osl/unx/salinit.cxx
[build CXX] sal/osl/unx/uunxapi.cxx
[build C  ] sal/osl/unx/backtrace.c
[build CXX] sal/osl/unx/interlck.cxx
[build CXX] sal/textenc/context.cxx
/tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.3.2/sal/osl/unx/backtrace.c:
In function 'backtrace_symbols_fd':
/tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.3.2/sal/osl/unx/backtrace.c:121:13:
warning: format '%x' expects argument of type 'unsigned int', but argument 3
has type 'void *' [-Wformat=]
             fprintf( fp, "[0x%x]\n", *pFramePtr );
             ^
...

relative simple, patches to be attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to