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

explicitly convert Time_t to RunNumber to avoid compiler warning #4285

Merged
merged 1 commit into from Jun 19, 2014

Conversation

apfeiffer1
Copy link
Contributor

explicitly convert Time_t to RunNumber for run numbers when creating a pair to make the compiler happy.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @apfeiffer1 (Andreas Pfeiffer) for CMSSW_7_2_X.

explicitly convert Time_t to RunNumber to avoid compiler warning

It involves the following packages:

Alignment/MillePedeAlignmentAlgorithm

@cmsbuild, @Degano, @diguida, @rcastello, @nclopezo can you please review it and eventually sign? Thanks.
@ghellwig, @mmusich, @frmeier this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@diguida
Copy link
Contributor

diguida commented Jun 18, 2014

@apfeiffer1 looks a trivial change, so I am giving +1. Before doing this, can you tell me how the compiler is not happy? Is it issuing a warning or an error? And why I cannot see it in the IB pages?
Thanks

@apfeiffer1
Copy link
Contributor Author

Hi Salvatore,

@apfeiffer1 https://github.com/apfeiffer1 looks a trivial change, so I am

giving +1. Before doing this, can you tell me how the compiler is not
happy? Is it issuing a warning or an error? And why I cannot see it in the
IB pages?

ah, sorry, yes. I got a private mail from Giulio who reported that from
someone who used the intel compiler:

"""
The "beginValue" and "endValue" are of type "Time_t" which is "unsigned
long long". However, the pair's type "RunNumber" is just "unsigned int".

GCC 4.8.1 does only warn here with -Wconversion, which is not set by
default. The Intel compiler fails with an error. That type truncation is an
error, unless casted (and hence documented) otherwise.
"""

That's why it's not in the IB pages. I (and Giulio) still thought it would
be good to fix. :)

Thanks,
cheers, andreas

@diguida
Copy link
Contributor

diguida commented Jun 18, 2014

+1
@apfeiffer1 thanks

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine).

davidlange6 added a commit that referenced this pull request Jun 19, 2014
explicitly convert Time_t to RunNumber to avoid compiler warning
@davidlange6 davidlange6 merged commit 78fcd18 into cms-sw:CMSSW_7_2_X Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants