Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-4471

gcc-4.4 error: #pragma GCC diagnostic not allowed inside functions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.6.39-83.1
    • Fix Version/s: 5.6.40-84.0
    • Component/s: None
    • Labels:
      None

      Description

      I found that my fixes for gcc-8 warnings do not work with gcc-4.4:

      sql_planner.cc:432: error: #pragma GCC diagnostic not allowed inside functions
      09:35:12 make[2]: *** [libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_planner.cc.o] Error 1

      It concerns macros that are inside a function and this is a problem for gcc 4.4:

      MY_DISABLE_WARN_MAYBE_UNINITIALIZED
       Loose_scan_opt loose_scan_opt;
      MY_RESTORE_WARN_MAYBE_UNINITIALIZED

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                przemyslaw.skibinski Przemyslaw Skibinski
                Reporter:
                przemyslaw.skibinski Przemyslaw Skibinski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 15 minutes
                  4h 15m