This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Silence AIX C Compiler Warnings.
Type: Stage:
Components: Build Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: nnorwitz, ralph
Priority: low Keywords: patch

Created on 2002-03-21 13:25 by ralph, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pat1 ralph, 2002-03-21 13:25 Patch to remove two ampersands.
Messages (5)
msg39314 - (view) Author: Ralph Corderoy (ralph) Date: 2002-03-21 13:25
AIX 3.2.5 C compiler gives warnings during compile of 
Objects/object.c and Modules/signalmodule.c due to
superfluous use of the ampersand address operator in 
front of a function name.  Since the code elsewhere 
consistently uses plain `foo' to represent a pointer to
the function foo and not `&foo' it seems best to make
the code consistent and silence these warnings at the
same time.
msg39315 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-03-21 17:17
Logged In: YES 
user_id=33168

Builds for me without warnings on Linux gcc 2.96 & 
solaris 8, gcc 2.95.3.
msg39316 - (view) Author: Ralph Corderoy (ralph) Date: 2002-03-21 18:17
Logged In: YES 
user_id=911

Dear nnorwitz, I'm aware that gcc doesn't issue the warning.
However, AIX 3.2.5's C compiler does.  And the source
consistently omits the ampersand elsewhere.  So there seems
little reason not to make the change and increase the
number of `clean' builds out there.  Cheers, Ralph.
msg39317 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-03-21 18:25
Logged In: YES 
user_id=33168

I'm sorry, you misunderstood.  I agree that the patch should
be applied.  I was reporting that there were no problems
created on other platforms.  -- Neal
msg39318 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-06-13 21:43
Logged In: YES 
user_id=33168

Checked in as:  object.c 2.162.6.4 and 2.179
signalmodule.c 2.60.10.2 and 2.69
History
Date User Action Args
2022-04-10 16:05:08adminsetgithub: 36302
2002-03-21 13:25:10ralphcreate