Project

Profile

Help

Bug #4318

closed

cannot combine with previous 'int' declaration specifier typedef int bool; - Mac OS X

Added by O'Neil Delpratt about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Mac Os X
Start date:
2019-09-24
Due date:
% Done:

100%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
1.1.0
Fixed in version:
1.2.0
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

The follow error was reported when building Saxon/C commands on Mac OS X.

https://stackoverflow.com/questions/58034996/using-saxon-c-with-perl/58060086#58060086

./buildpec-command.sh -I../Saxon.C.API/jni Transform.c:15:13: error: cannot combine with previous 'int' declaration specifier typedef int bool; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include/stdbool.h:31:14: note: expanded from macro 'bool' Transform.c:15:1: warning: typedef requires a name [-Wmissing-declarations] Transform.c:217:9: warning: format string is not a string literal (potentially insecure) Transform.c:217:9: note: treat the string as an argument to avoid this
Actions #1

Updated by O'Neil Delpratt about 5 years ago

  • Status changed from New to Resolved

Bug fixed and committed on the Saxon/C 1.1 and 1.2 branches

We have added preprocessor directives to resolve the following issues:

  1. bool variable
  2. Library path on macOS.

Query.c Transform.c Validate.c

Actions #2

Updated by O'Neil Delpratt about 5 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 1.2.0

Big fix applied in the Saxon/C 1.2.0 release.

Please register to edit this issue

Also available in: Atom PDF