Commits

Jed Brown  committed 03936bf

C-style comments

Preprocessors also remove comments, and some like to complain about //
comments in C89 source, even if they are within #ifdef __cplusplus and
won't be parsed anyway. Use of C-style comments in headers that will be
included from C (even if none of the header is actually active) avoids
the spurious warning.

Hg-commit: 58735924d4ab1c437cdf528cfde5034160f73775

  • Participants
  • Parent commits ddd42aa

Comments (0)

Files changed (1)

File include/petsclog.hh

         PetscLogEvent  id;
         PetscErrorCode ierr;
 
-        // Should check for already registered events
+        /* Should check for already registered events */
         ierr = PetscLogEventRegister(name.c_str(), cookie, &id);CHKERRXX(ierr);
         event_registry[name] = LogEvent(name, id);
       }
         PetscLogStage  id;
         PetscErrorCode ierr;
 
-        // Should check for already registered stages
+        /* Should check for already registered stages */
         ierr = PetscLogStageRegister(name.c_str(), &id);CHKERRXX(ierr);
         stage_registry[name] = LogStage(name, id);
       }