MySQL++

Check-in [d89e70a915]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Squished a pendantic warning from Clang about an unused variable in the operator<< generated for certain types of SSQLS. We can't easily remove the variable in this case, so we just do a (void) cast on it to placate the compiler if it's never used before the function ends.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:d89e70a915e45d83be00841c4355158b92336b4cb03b07ba5fb6e0801f819f2d
User & Date: tangent 2018-07-27 05:06:56
Context
2018-07-27
05:08
Removed doc/userman/userman.dbx from the repo: it's created from userman.dbx.in. check-in: cd4cdc164c user: tangent tags: trunk
05:06
Squished a pendantic warning from Clang about an unused variable in the operator<< generated for certain types of SSQLS. We can't easily remove the variable in this case, so we just do a (void) cast on it to placate the compiler if it's never used before the function ends. check-in: d89e70a915 user: tangent tags: trunk
05:05
Ditto lib/querydef.h check-in: d2098e2c16 user: tangent tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/ssqls.pl.

750
751
752
753
754
755
756

757
758
759
760
761
762
763
764

765
766
767
768
769
770
771
772

773
774
775
776
777
778
779
	}

	template <class Manip>
	std::ostream& operator <<(std::ostream& s, const NAME##_cus_value_list<Manip>& obj)
	{
		bool before = false;
$value_list_cus

		return s;
	}

	template <class Manip>
	std::ostream& operator <<(std::ostream& s, const NAME##_cus_field_list<Manip>& obj)
	{
		bool before = false;
$cus_field_list

		return s;
	}

	template <class Manip>
	std::ostream& operator <<(std::ostream& s, const NAME##_cus_equal_list<Manip>& obj)
	{
		bool before = false;
$cus_equal_list

		return s;
	}

	template <class Manip>
	inline NAME##_value_list<Manip> NAME::value_list(const char* d, Manip m) const
			{ return NAME##_value_list<Manip> (this, d, m); } 








>








>








>







750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
	}

	template <class Manip>
	std::ostream& operator <<(std::ostream& s, const NAME##_cus_value_list<Manip>& obj)
	{
		bool before = false;
$value_list_cus
        (void)before;
		return s;
	}

	template <class Manip>
	std::ostream& operator <<(std::ostream& s, const NAME##_cus_field_list<Manip>& obj)
	{
		bool before = false;
$cus_field_list
        (void)before;
		return s;
	}

	template <class Manip>
	std::ostream& operator <<(std::ostream& s, const NAME##_cus_equal_list<Manip>& obj)
	{
		bool before = false;
$cus_equal_list
        (void)before;
		return s;
	}

	template <class Manip>
	inline NAME##_value_list<Manip> NAME::value_list(const char* d, Manip m) const
			{ return NAME##_value_list<Manip> (this, d, m); }