]> granicus.if.org Git - libexpat/commitdiff
CMake: Drop .c files from expat_SRCS that are empty unless included
authorSebastian Pipping <sebastian@pipping.org>
Mon, 2 Sep 2019 18:46:04 +0000 (20:46 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 2 Sep 2019 19:31:46 +0000 (21:31 +0200)
expat/CMakeLists.txt

index 4328b982ccbba1ac7860f210e1a514c5defb2f2f..64e6e36ba093a5e4a8524f7764de86d7acde334b 100644 (file)
@@ -229,8 +229,9 @@ set(expat_SRCS
     lib/xmlparse.c
     lib/xmlrole.c
     lib/xmltok.c
-    lib/xmltok_impl.c
-    lib/xmltok_ns.c
+# NOTE: ISO C forbids an empty translation unit
+#   lib/xmltok_impl.c
+#   lib/xmltok_ns.c
 )
 
 if(EXPAT_SHARED_LIBS)