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

Review code #2

Open
mhoff opened this issue Jun 5, 2015 · 4 comments
Open

Review code #2

mhoff opened this issue Jun 5, 2015 · 4 comments
Assignees

Comments

@mhoff
Copy link
Member

mhoff commented Jun 5, 2015

Check complete code and fix remaining warnings.

@mhoff
Copy link
Member Author

mhoff commented Jun 12, 2015

@briehm Is here happening something?
I still see warnings when compiling our code.

@mhoff
Copy link
Member Author

mhoff commented Jun 27, 2015

Push

@briehm
Copy link
Member

briehm commented Jul 14, 2015

src/mpi_masterworker.c: In function 'worker':
src/mpi_masterworker.c:173:24: warning: unused parameter 'process_id' [-Wunused-parameter]
static void worker(int process_id, int master_id,

It seems like GCC is not getting that the process_id is used inside the Debug-Macros:

DBG_WORKER("Worker[%02d]: Received order to process matrix #%u\n",
process_id, task.matrix_index);

The Clang compiler warns about either GNU Extensions and Macros or the remaining (afaik unfixable) Padding issues..

@mhoff
Copy link
Member Author

mhoff commented Jul 14, 2015

It seems like GCC is not getting that the process_id is used inside the Debug-Macros

Yes. That's because the preprocessor eliminates those before the compiler does its actual work.
I think the only solution would be to make also the method header itself dependent on macros.
In debug mode with the additional int parameter and without it otherwise.

But I think that would be overcomplicated. What do you mean?

The Clang compiler warns about either GNU Extensions and Macros or the remaining (afaik unfixable) Padding issues..

Yeah. I think thats okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants