Compilation Errors when disabling DebugP logs.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • SITSW-10411
    • 11.02.00
    • 12.00.00
    • am62p-sk

      Disabling log:

       

      #ifndef DebugP_LOG_ENABLED
      /**
       * \brief Pre-processor define to enable or disable DebugP log's
       *
       * Set to 0 to disable logging and recompile all code where this file is included.
       */
      #define DebugP_LOG_ENABLED    0
      #endif 

      Compilation Errors:

      PS C:\ti\mcu_plus_sdk_am62px_11_02_00_23> gmake -sj4 all
       Compiling: dhrystone_benchmark.am62px.r5f.ti-arm-clang.release.lib: src/dhry.c
       Compiling: board.am62px.r5f.ti-arm-clang.release.lib: eeprom/eeprom.c
      src/dhry.c:128:14: error: variable 'Microseconds' set but not used [-Werror,-Wunused-but-set-variable]
        128 |     float    Microseconds = 0,
            |              ^
      src/dhry.c:129:17: error: variable 'Dhrystones_Per_Second' set but not used [-Werror,-Wunused-but-set-variable]
        129 |                 Dhrystones_Per_Second = -1;
            |                 ^
      2 errors generated. 

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-6525 - Compilation Errors when disabling D...
                SYNCHRONIZED
                • Last Sync Date: