Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-820

error: #pragma GCC diagnostic not allowed inside functions

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2-beta1
    • Affects Version/s: 1.2-beta0
    • Component/s: libmongoc
    • None
    • Environment:
      RHEL-6

      Build ok with gcc 4.8, 4.9 and 5.1

      Build fails with gcc 4.4 (default compiler on RHEL/CentOS 6)

      src/mongoc/mongoc-matcher-op.c: In function '_mongoc_matcher_op_compare_new':
      src/mongoc/mongoc-matcher-op.c:166: error: #pragma GCC diagnostic not allowed inside functions
      src/mongoc/mongoc-matcher-op.c:167: error: #pragma GCC diagnostic not allowed inside functions
      src/mongoc/mongoc-matcher-op.c:172: error: #pragma GCC diagnostic not allowed inside functions

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            remi Remi Collet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: