Project

General

Profile

Bug #29

gmx_fft_fftw3.c compilation error

Added by Yang Ye about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
High
Assignee:
Erik Lindahl
Category:
mdrun
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

Compiler warning.
cc: Warning: gmx_fft_fftw3.c, line 96: In this statement, performing pointer
arithmetic on a pointer to void or a pointer to function is not allowed. The
compiler will treat the type as if it were pointer to char. (badptrarith)
pv += 8;
----^

p1 (FFTWPREFIX) was assigned to pv.

Compiler treat pv as char*. Will this be an error?

History

#1 Updated by Erik Lindahl about 14 years ago

We should change this pointer type to char anyway.

And no, it won't cause any errors.

Also available in: Atom PDF