Files
guru/app-misc/clipboard/files/disable-debug-info.patch
Quincy Fleming 7d3da3fe4d app-misc/*: simple name change and update
Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
2023-07-10 13:46:19 -05:00

20 lines
646 B
Diff

#Created by Quincy Fleming.
#Disables debug info without using flag NDEBUG as unless forced it will be ignored in favor of the user's specified compiler flags
--- a/src/gui/include/all/clipboard/logging.hpp
+++ b/src/gui/include/all/clipboard/logging.hpp
@@ -17,7 +17,6 @@
#include <iostream>
#include <streambuf>
-#if defined(NDEBUG)
class NullBuffer : public std::streambuf {
public:
int overflow(int c) override { return c; }
@@ -26,6 +25,3 @@
static NullBuffer nullBuffer;
static std::ostream nullStream(&nullBuffer);
static std::ostream& debugStream = nullStream;
-#else
-static std::ostream& debugStream = std::cerr;
-#endif