Bug 1762 - Function prototypes should not be declared in a function
Summary: Function prototypes should not be declared in a function
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.7
Hardware: PPC AIX
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2004-09-14 15:34 UTC by Albert Chin (temp failure)
Modified: 2005-08-24 10:25 UTC (History)
0 users

See Also:

Patch (455 bytes, patch)
2004-09-14 15:35 UTC, Albert Chin (temp failure)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Chin (temp failure) 2004-09-14 15:34:55 UTC
source/nsswitch/winbind_nss_aix.c contains a function prototype in a function,
which the IBM C compiler does not like:
xlc -I. -I/opt/build/samba-3.0.7/source -O2 -qmaxmem=-1 -qarch=com
-D_LINUX_SOURCE_COMPAT -qmaxmem=32000 -I./popt -Iinclude
-I/opt/build/samba-3.0.7/source/include -I/opt/build/samba-3.0.7/source/ubiqx
-I/opt/build/samba-3.0.7/source/smbwrapper -I. -I/opt/TWWfsw/readline43s/include
-I/opt/TWWfsw/readline43s/include -I/opt/TWWfsw/openldap2127/include
-I/opt/build/samba-3.0.7/source -O2 -c nsswitch/winbind_nss_aix.c -o
"nsswitch/winbind_nss_aix.c", line 167.31: 1506-283 (E) Functions cannot be
declared static at block scope, static is ignored.
Comment 1 Albert Chin (temp failure) 2004-09-14 15:35:07 UTC
Created attachment 659 [details]
Comment 2 Tim Potter 2004-09-30 19:59:14 UTC
Checked in - thanks again!
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:25:49 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.