Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3 warning #480

Closed
osresearch opened this issue Nov 27, 2015 · 2 comments
Closed

sqlite3 warning #480

osresearch opened this issue Nov 27, 2015 · 2 comments

Comments

@osresearch
Copy link
Contributor

Compiling on osx with clang 3.0:

kremvax:~/build/mame: clang --version
Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
Compiling 3rdparty/sqlite3/sqlite3.c...
../../../../../3rdparty/sqlite3/sqlite3.c:66818:7: error: expression result
      unused [-Werror,-Wunused-value]
      getVarint32(&aKey1[idx1], serial_type);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../3rdparty/sqlite3/sqlite3.c:12952:3: note: instantiated from:
  (u8)((*(A)<(u8)0x80)?((B)=(u32)*(A)),1:sqlite3GetVarint32((A),(u32 *)&(B)))
  ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../3rdparty/sqlite3/sqlite3.c:66849:7: error: expression result
      unused [-Werror,-Wunused-value]
      getVarint32(&aKey1[idx1], serial_type);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../3rdparty/sqlite3/sqlite3.c:12952:3: note: instantiated from:
  (u8)((*(A)<(u8)0x80)?((B)=(u32)*(A)),1:sqlite3GetVarint32((A),(u32 *)&(B)))
  ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../3rdparty/sqlite3/sqlite3.c:67019:3: error: expression result
      unused [-Werror,-Wunused-value]
  getVarint32(&aKey1[1], serial_type);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../3rdparty/sqlite3/sqlite3.c:12952:3: note: instantiated from:
  (u8)((*(A)<(u8)0x80)?((B)=(u32)*(A)),1:sqlite3GetVarint32((A),(u32 *)&(B)))
  ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/3rdparty/sqlite3/sqlite3.o] 
osresearch added a commit to osresearch/mame that referenced this issue Nov 27, 2015
@mmicko
Copy link
Member

mmicko commented Nov 28, 2015

Since sqlite3 is external, I suggest change in scripts\genie.lua

if (version >= 30200) then
buildoptions {
"-Wno-unused-value",
}
end

guess version >= 30000 should fix this. Please inform me

@osresearch
Copy link
Contributor Author

Yes, updating the version test fixes these warnings.

rb6502 added a commit that referenced this issue Nov 30, 2015
silence warnings on OSX clang3.0 (issue #480)
@mmicko mmicko closed this as completed Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants