Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename dlt_common.c into dlt_common.cpp. #506

Merged
merged 1 commit into from
Jul 30, 2024

Commits on Jul 24, 2024

  1. Rename dlt_common.c into dlt_common.cpp.

    This makes sure c++ compiler is used and not plain c, failing with some error like
    
    [ 10%] Building C object qdlt/CMakeFiles/qdlt.dir/dlt_common.c.o
    cd /dlt-viewer/obj-x86_64-linux-gnu/qdlt && /usr/bin/cc -DBYTE_ORDER=LITTLE_ENDIAN -DPLUGIN_INSTALLATION_PATH=\"/usr/lib/x86_64-linux-gnu/dlt-viewer/plugins\" -DQT5 -DQT5_QT6_COMPAT -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SERIALPORT_LIB -DQT_VIEWER -D_TTY_POSIX_ -Dqdlt_EXPORTS -I/dlt-viewer/obj-x86_64-linux-gnu/qdlt -I/dlt-viewer/qdlt -I/dlt-viewer/obj-x86_64-linux-gnu/qdlt/qdlt_autogen/include -I/dlt-viewer/qdlt/../src -isystem /usr/include/x86_64-linux-gnu/qt6/QtCore -isystem /usr/include/x86_64-linux-gnu/qt6 -isystem /usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt6/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt6/QtSerialPort -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/dlt-viewer=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -fPIC   -Wall -Wextra -pedantic -Wno-variadic-macros -Wno-strict-aliasing -fPIC -MD -MT qdlt/CMakeFiles/qdlt.dir/dlt_common.c.o -MF CMakeFiles/qdlt.dir/dlt_common.c.o.d -o CMakeFiles/qdlt.dir/dlt_common.c.o -c /dlt-viewer/qdlt/dlt_common.c
    In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:37,
                     from /usr/include/x86_64-linux-gnu/qt6/QtCore/QtGlobal:1,
                     from /dlt-viewer/qdlt/export_rules.h:1,
                     from /dlt-viewer/qdlt/dlt_common.h:67,
                     from /dlt-viewer/qdlt/dlt_common.c:70:
    /usr/include/x86_64-linux-gnu/qt6/QtCore/qtypes.h:163:15: error: expected declaration specifiers or '...' before 'sizeof'
      163 | static_assert(sizeof(ptrdiff_t) == sizeof(size_t), "Weird ptrdiff_t and size_t definitions");
          |               ^~~~~~
    /usr/include/x86_64-linux-gnu/qt6/QtCore/qtypes.h:163:52: error: expected declaration specifiers or '...' before string constant
      163 | static_assert(sizeof(ptrdiff_t) == sizeof(size_t), "Weird ptrdiff_t and size_t definitions");
          |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /dlt-viewer/qdlt/dlt_common.c: In function 'dlt_message_header_flags':
    /dlt-viewer/qdlt/dlt_common.c:753:47: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member]
      753 |         timeinfo = localtime ((const time_t*)(&(msg->storageheader->seconds)));
    
    Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
    Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
    LocutusOfBorg committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    6aeb1d2 View commit details
    Browse the repository at this point in the history