Skip to content

Commit 7d894fd

Browse files
committed
suppress two nags from g++
1 parent 092d947 commit 7d894fd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
* R/Attributes.R (.plugins[["openmp"]]): Fix typo in comment
77

8+
* src/attributes.cpp (Rcpp): Use size_t (twice) to suppress nags from g++
9+
810
2017-05-16 JJ Allaire <[email protected]>
911

1012
* R/Attributes.R: Automatically generate native routine registrations.

src/attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ namespace attributes {
19791979
// generate declarations
19801980
if (declarations.size() > 0) {
19811981
ostr() << std::endl;
1982-
for (int i = 0; i<declarations.size(); i++)
1982+
for (std::size_t i = 0; i<declarations.size(); i++)
19831983
ostr() << declarations[i] << std::endl;
19841984
}
19851985

@@ -1992,7 +1992,7 @@ namespace attributes {
19921992
routineArgs[i] << "}," << std::endl;
19931993
}
19941994
if (callEntries.size() > 0) {
1995-
for (int i = 0; i<callEntries.size(); i++)
1995+
for (std::size_t i = 0; i<callEntries.size(); i++)
19961996
ostr() << callEntries[i] << std::endl;
19971997
}
19981998
ostr() << " {NULL, NULL, 0}" << std::endl;

0 commit comments

Comments
 (0)