They can indicate "previous specification" as note.
"previous specification" is compiled well and is now commented out of under the function name.
We cannot use the default setting like match="---" in the head of function in mingw32-c++.exe compilation.
1 | - > mingw32-c++.exe -c .\schema-003.cpp .\schema-003.cpp:8:105: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] TEXTINFO_001* baselootin_000 (TEXTINFO_001 *textinfo, char* match="---", char* filename, char* filetime ); ^ .\schema-003.cpp:8:15: error: default argument missing for parameter 3 of 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, c har*, char*, char*)' TEXTINFO_001* baselootin_000 (TEXTINFO_001 *textinfo, char* match="---", char* filename, char* filetime ); ^~~~~~~~~~~~~~ .\schema-003.cpp:8:15: error: default argument missing for parameter 4 of 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, c har*, char*, char*)' .\schema-003.cpp:11:106: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] TEXTINFO_001* baselootin_000 (TEXTINFO_001 *textinfo, char* match="---", char* filename, char* filetime ) { ^ .\schema-003.cpp: In function 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, char*, char*, char*)': .\schema-003.cpp:11:106: error: default argument given for parameter 2 of 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, c har*, char*, char*)' [-fpermissive] .\schema-003.cpp:8:15: note: previous specification in 'TEXTINFO_001* baselootin_000(TEXTINFO_001*, char*, char*, char*) ' here TEXTINFO_001* baselootin_000 (TEXTINFO_001 *textinfo, char* match="---", char* filename, char* filetime ); |
- | - | - |
|
||||
.\textinfo_001.h Sat Jul 31 07:35:27 2021 1 :#ifndef _TEXTINFO_001_H_ |
||||