Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing algorithm.h for icc (closes #640) #645

Merged
merged 1 commit into from Feb 4, 2017

Conversation

@dcdillon
Copy link
Contributor

@dcdillon dcdillon commented Feb 4, 2017

Now we have RCPP_CONSTEXPR_VAR and RCPP_CONSTEXPR_FUNC which are defined properly.

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Feb 4, 2017

Paging @coatless as the white knight in shining armour ... and access to icc. Can you check this, please?

@coatless
Copy link
Contributor

@coatless coatless commented Feb 4, 2017

Passes with flying colors outside of the other warning not related to the algorithm.h

Date.cpp(642): warning #437: reference to local variable of enclosing function is not allowed
                      2 * sizeof *sp + 4 * TZ_MAX_TIMES];
                                  ^

clean_build

@eddelbuettel eddelbuettel merged commit d38a304 into RcppCore:master Feb 4, 2017
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Feb 4, 2017

Is that icc warning in Date.cpp something real, or can we just ignore it?

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Feb 4, 2017

It annoyed me too, but I checked against current R-devel and it has basically still the identical code (though they renamed the union u to union u_t). So I'd through my arms up in the air.

Lines 375+ from ~/svn/r-devel/src/extra/tzone/localtime.c, current as of a few hours ago:

static int
tzload(const char * name, struct state * const sp, const int doextend)
{
    const char * p;
    int	 i;
    int	 fid;
    ssize_t nread;
    typedef union {
	struct tzhead  tzhead;
	char  buf[2 * sizeof(struct tzhead) + 
		  2 * sizeof *sp + 4 * TZ_MAX_TIMES];
    } u_t;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.