Skip to content

Commit c91d78a

Browse files
committed
remove spurious parenthesis [gcc8 warning] (closes #841)
1 parent 78408fa commit c91d78a

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2018-03-31 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/include/Rcpp/sprintf.h (Rcpp): Remove parens [gcc8 warning]
4+
5+
* vignettes/Rcpp-attributes.Rmd: Update link to JSS intro vignette
6+
* vignettes/Rcpp-modules.Rmd: Idem
7+
18
2018-03-21 Dirk Eddelbuettel <[email protected]>
29

310
* DESCRIPTION (Version, Date): Roll minor version

inst/NEWS.Rd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
\item The random number \code{Generator} class no longer inhreits from
1111
\code{RNGScope} (Kevin in \ghpr{837} fixing \ghit{836}).
1212
}
13+
\item Changes in Rcpp Documentation:
14+
\itemize{
15+
\item Two internal links to the introduction published in JSS have been
16+
updated to the changed filename given the newer TAS introduction.
17+
}
1318
}
1419
}
1520

inst/include/Rcpp/sprintf.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// sprintf.h: Rcpp R/C++ interface class library -- string formatting
44
//
5-
// Copyright (C) 2010 - 2011 Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2010 - 2018 Dirk Eddelbuettel and Romain Francois
66
//
77
// This file is part of Rcpp.
88
//
@@ -22,14 +22,14 @@
2222
#include <cstdio>
2323
#include <cstdarg>
2424

25-
namespace Rcpp{
25+
namespace Rcpp {
2626

2727
template <int MAX_SIZE>
2828
std::string sprintf( const char *format, ...) {
2929
static char buffer[MAX_SIZE];
30-
va_list(ap);
30+
va_list ap;
3131
va_start(ap, format);
32-
vsnprintf( buffer, MAX_SIZE, format, ap);
32+
vsnprintf(buffer, MAX_SIZE, format, ap);
3333
va_end(ap);
3434
return buffer ;
3535
}

0 commit comments

Comments
 (0)